Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

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 Article


Check 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 Article


how 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 Article

Powershell 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 Article

How 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 Article


Edit 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 Article

how 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 Article

Manipulate 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 Article


Need 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 Article


Recursive 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 Article

Specify 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 Article

Archive 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 Article

Mailbox 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 Article


Powershell 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 Article

Parse 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 Article


Bug 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 Article

Image may be NSFW.
Clik here to view.

Problem 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 Article


icacls 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 Article

Get-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 Article

Can 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
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>