CurrentVersion\Run vs Scheduled Task
In the VBScript flavor of my deployment tool I used HKLM\Software\Microsoft\Windows\CurrentVersion\Run to trigger a script to handle the user initiation parts of Autodesk deployments. But in my...
View ArticleSend-MailMessage the server response was: #4.x.2 Too many messages for this...
I have a scheduled task that will check for passwords expiring in 15 days or less and fire off a reminder email to the user that they have x days left to change it. However, there are usually 70+...
View ArticleTarget a specific domain controller when running a cmdlet
Nearly every cmdlet I'm using in a script supports -DomainController. Except one. Is there a way to force a cmdlet to use a specific DC? In this instance, remote PowerShell is not an option. This is a...
View ArticleRemove-Items permissions: Win8.1 vs Win7
Has Windows 8 locked up Program Files in a way that Win 7 didn't? I have a script that uses Remove-Item to delete files and folders from C:\Program Files and it works fine in Win 7 but not in Win 8.1....
View ArticleFailed to enumerate SSL bindings error code 234
Hello, does anybody know how to resolve this issue? Replicate when you type the following command in PowerShell.dir iis:\sslbindings Have comes across a forum topic (not allowed to post links yet :\...
View ArticleRead in specific line numbers from a text file (very large 1.5GB) using...
Hi all,I have a large file (a text file) which is over 1.5GB in size. I need to read in specific line numbers from the file, I have a list of exact line numbers I wish to read.If I use "get-content"...
View ArticleCompare AD to CSV File
I'm fairly new to PowerShell. I've done some programming and very little scripting, but small words would be good :) My organization had about 5,300 users we needed to disable for a client. Someone...
View ArticleRetrieving specific information (email addresses) from Active Directory in...
Hello, out there. I'm just beginning to learn PowerShell finally, I'm very interested in learning cooler and better things.I wanted to know if retrieving information from Active Directory based on a...
View ArticleRemote Removal Of Windows Shares
Hi,I am trying to automate a migration process involving thousands of user shares. In the past they were all entered as \\server\username$ & I am trying to move to DFS with just a few shares per...
View ArticleWhat permissions are needed on the client side for...
Hi.I am running a remote powershell command from an IIS application to an Exchange server getting the below error. Everything works fine if the IIS application pool identity is in the local...
View ArticleMove Users Favorites Folder in Roaming Profile and then Delete?
Hello,My current scenario is as follows for user accounts:\\90.244.233.10\userprofile$\User-16 (this is their profile path)\\90.244.233.10\userprofile$\User-16\Favorites (this is their favorites...
View ArticleFind text(regex) in excel cell
Hi,Is it possible to search a spreadsheet for a regex and output it to a file? The spreadsheet has many occurences of test beginning A.## (hash being a number between 0-10)IS this possible... Sorry...
View ArticleAdd-Computer to domain with new name returns error
Hi Folks:I am writing a script that configures servers and joins them to a domain. Near the end of the script I've added the command,Add-Computer -DomainName 'domainname' -Credential (Get-Credential...
View Article>" mean in powershell 2.0?">What does ">>" mean in powershell 2.0?
I entered the commandSet-OABVirtualDirectory <CAS2010>\OAB* -ExternalUrl "https://mail.contoso.com/OAB"and got >>Then I entered a simple. Get-Eventlog system -newest 100 | where...
View ArticlePowershell scripts run in console but does not run as Job
Hello,I have a Powerscript script that run great when run in the console but as soon as I create a schedule Job is stops running.The script spawns off child jobs, these child jobs are the one that are...
View ArticleExchange - Contacts and Mailbox permissions
Hi,I need to setup forwarding for multiple users to a contact of the same name. (contacts are created)At the same time I would like to remove "self" permission and add the users account from a trusted...
View ArticleUsing a lookup from one CSV file to another CSV file errors with a name clash
HiI have a master CSV file created by querying the AD. I need to populate the "Team" attribute by doing a lookup using Name against the Name Column any of 6 CSVs, someone has prepared for me . The...
View ArticleHow to enable powershell remoting in Powershell V3?
I'm running powershell 3.0 in Windows 7 and I'm connected to a domain. These are the logs I get when I run Enable-PSRemoting:WinRM has been updated to receive requests. WinRM service type changed...
View ArticleValidate if a user is a member of group in AD
How do I verify whether a user is a member of "Department" group or not in Active directory using powershell?I can see the member by going to properties -- Member of -- and can see all the members of...
View ArticleJob powershell fail through scheduler
I have a dilemma. I am using the Windows Server 2012 scheduler to execute powershell scripts. To experiment, poured a new W2012, has created a new domain test.wan isolated network .- Created by user...
View Article