Add ad module in Windows 2012 R2
Hi,Please advise howto add a powershell module for AD management in Windows 2012 (powershell x86 as well as x64).When I try to I get an error:PS H:\> import-module ActiveDirectory import-module :...
View ArticleCheck PSSession Exits
I have the following simple New-PSSession script that I run to connect to my exchange 2010 server.How can I setup the script to detect if the session is already active and do nothing, else open the...
View Articlehow to avoid copying specfic file using powershell
Hi i would like to copy content from a folder but there is 1 specific file called Web.config which i do not want to copy.i am using the following script but no luck$unzipAdmin =...
View ArticlePowershell Add Network Printer Error
Hope someone can assist me in this.I am trying to add a network printer using PowerShell but I keep getting the error:Exception calling "AddWindowsPrinterConnection" with "1" argument(s): "The printer...
View ArticleHow to user PowerShell -replace to remove the dreaded em dash from a file name?
I have a bunch of .msg files in a directory and want to zip them up (to send them to our spam filtering company), but I keep getting errors on file names that contain the em dash (—). I believe it's...
View ArticleEdit Duration and repetition interval for an existing job in a Powershell...
Hi All I have enabled a job that repeats daily once. Like: Register-ScheduledJob -Name SomeJob -Credential host00\idiot00 -ScriptBlock {Some-Job} -Trigger (New-JobTrigger -Daily -At "21:00") I want to...
View Articlehow to overwrite files with copy-item in powershell
HiI am trying to copy content of a folder but there are two files which i would like to exclude. rest all the content should be copied to a new location and existing content on that new location should...
View ArticleManipulate the data coming from the sensor.
Our office job works on a software whose front end is a VB program and back end is a MS Access program. Data from a sensor and digitizer enters into the front end and gets stored in the back end. How...
View ArticleNeed User input pop-up in powershell when its run as a background process of...
Hi,I have created a powershell script which requires two parameters to be passed onto it for getting executed. This script is called by an application and runs it in background (no console / window)....
View ArticleRecursive ADSI Script in PowerShell
Hi,I have a script written in PowerShell that creates a report on AD in exactly the right format that I want. I need this script in order to replace another method of generating this report. The...
View ArticleSpecify null value
Hi,I'm using the last version of this script:http://gallery.technet.microsoft.com/scriptcenter/Reset-password-for-all-412fbc72to modify the password for school pupils. The youngest children in the...
View ArticleArchive Windows System logs (event viewer)
Hi Guys, Good Day. I want to export daily all System event logs and generate report to a .CSV or .TXT file and then copy the report file to, the following location \\Archivenasprd01\Appspr01\ddmmyyyy:...
View ArticleMailbox Folder Stats Script Error
I have a script that I've put together to gather stats on item count and size for two custom folders we've deployed to all mailboxes. It seems to work fine for the most part but some mailboxes it...
View ArticlePowershell script for gathering specific events ids for multiple computers
Hi Guys,I am trying to work on a powershell script in which we need to gather specific event ids for reboots across muliple computers in our organziation.The script works fine providing expected output...
View ArticleParse DataTransferred from Get-Event Microsoft-Windows-Backup ->‘VolumesInfo’
I am trying to extract VolumesInfo detail from the event log I can get ‘VolumesInfo’ with $VolumesInfo = $event.SelectSingleNode("//*[@Name='VolumesInfo']") but that is...
View ArticleBug in help file: "man Get-ScheduledJobOption -Full" ?
Excerpt from "man Get-ScheduledJobOption -Full": ------ Example 2: Get all job options PS C:\>Get-ScheduledJob | Get-ScheduledJobOptions This command gets the job options of all scheduled jobs...
View ArticleProblem with VB script
Hi, I do get this error when using this VB scriptfile 1 to call this DLL Project that is created by VS 2012. why?Many Thanks & Best Regards, Hua Min
View Articleicacls vbscript - disabling inheritance and removing permissions a security...
Hi all,I have been working on a script to do what the subject line says but I'm really not getting anywhere. I feel as though I'm almost there, but I just can't figure out the last part.My script is as...
View ArticleGet-ADGroupMember runing issue
Hi guysI am just trying some basic AD scripts, but got some problem with Get-ADGroupMemberI am trying to get a list of users in a group, including every subgroup in that group. Then I want to display...
View ArticleCan any body help patches applying through powershell?
Hi,Is there any posibility to apply patches automatically on servers by using powershell?In my Environment having vbscript is using for applying patches to servers with notification E-Mail to...
View Article