Hello,
I need to use PowerShell to dump the ACLs for folders only, recursively, through 200,000+ folders on a DFS file system running on Windows 2003 R2. We have a tool for doing this but i...
I'm trying to run WBADMIN via a PS script. I'm generating the commandline with variables. The script is designed to perform a backup (obviously as a scheduled task every night) to a different ...
I'm a VERY new user to powerShell and would like to get a listing of the shares and share permissions on remote servers. I know the start is "Get-WMIObject Win32_Share -computername myserver"...
Please refer to the following code. In the first line of code, I want to insert a start-sleep command between the get-ftp statement and the foreach-object -process statement. The idea is to ...
Hello. I am looking for some assistance creating a Powershell Script to do the following.
1. List all users of a specific group in active directory and write to an XLS
2. Then I want t...
I would like to get help with a powershell script that gives me the size in MB or GB of a location on my E drive (Where my exchange logs are located) - which creates a text file and then that ...
When working on powershell on a XP machine. If I want to query my exchange server or active directory what do I have to do?
It seems that all commands for exchange and AD (Get-QADUser)... ...
Hi,
I wonder if somebody has a powershell/vb/batch script to move files which are older than 4 hours (create time) to different location and rename those with adding create date & time at e...
I have a little function, it has a daft name, but I never was any good at thinking of those. It accepts an object as input and returns a Byte Array. I use it to combine several different Byt...
Hi All,
Powershell question...If I return an attribute e.g
[PS] C:\>Get-MailContact testuser1 | Select-Object DistinguishedName
How do I then convert the output...
DistinguishedName
---...
I am trying to run this command:
Import-Csv $sourceMachinesList | ForEach-Object
{
# some code
}
I get no error messages, but I do get this message asking for a parameter
"cmdlet...
Hello,
I am attempting to execute a an SQL query through PowerShell against an MS Access database. My query works 99% of the time, but occasionally a localized string will cause an error b...
Why do the simple things have to be so hard :(
How do I migrate this simple Batch command to Powershell?
move "\\Server\c$\windows\system32\config\Archive*.evt" "c:\logs\backup\Server-Arch...
I am trying to schedule a powershell script to run via the task manager. When I run the script alone - it executes fine.
Here is the contents of the RUN command via the Windows Scheduler:
...
I have a powershell script that gets mailbox sizes, display names, Total Items, and storage limit status and creates a textfile as the output.
now I get this "WARNING: 2 columns do not f...
I have a script that gets the size of folders in a share directory - but I want to sort it from largest to smallest and I cannot figure out how to sort it
I want to modify permissions on an Exchange 2007 Address List with a PowerShell script. To do so, I first need to remove inheritance. I faound a way to do this: Set-QADObjectSecurity -LockInhe...
Im playing with the following script to find files older than 1 day.
$DateToCompare = (get-date).AddDays(-1)
$logFiles = get-childitem C:\logs -recurse | ? {$_.LastWriteTime -lt $DateToCo...
I am trying to run the simplest of Powershell scripts in Windows Server 2008.
I an trying to change the FullName property of a local user. This script
works fine on XP (the local user "tes...