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

Get-WinEvent script against a list of remote PC's

I'm trying to create a script that will run against a list of PC's, which displays the first and last instance of a specific event ID (in this case, 19). I have the following script working on the...

View Article


Variable in VBScript in MS Access SQL insert

Hi,I am having an issue getting the syntax right for an INSERT statement in my VBScript. Ultimately, this script will take the columns and row 1 from my data sheet and insert them. Does anyone know the...

View Article


WSUS count clients in each group

I am a newbie to scripting and struggling to figure out how to create a script that will count the number of clients in each WSUS group, regardless of update status.Looking for any help or direction I...

View Article

merge xls files using powershell

is there any way to merge xls files using powershell ?

View Article

getting multiple counters with get-counter ?

Just trying to get a handful of counters for sql server monitoring.  but is there any way i can export-counters all  into 1  .blg file or am i not getting this ?  do they have to be in the same set i...

View Article


Add domain user to local admin group in another domain

I want to use Powershell to add the user domain2\user123 to the local admin group on server domain2\server123.  I want to be able to run the script from a workstation in domain1 and pass domain2...

View Article

questation about powershell and encoding

hi all,sorry for my englisch . i have questaton about abou file encoding . I have file with ISO-8859-2 . But if I call in the powershell funkcion OpenText , the currentencoding is UTF8 . How i change...

View Article

Compare Groups

Hi,I need to compare ADgroups so that i Can check how many employees are there as per our Hr Data.:DThanks In Advance.

View Article


How to run batchfile with administrator's authority?

Referring to following codes, it simply backup everything from D: to F:.If I am using administrator account, it works fine, but once I switch to user account under user group, then I get no authority...

View Article


run a powershell script on every user login/unlock

Hi everybody I need to run a powershell (that opens an interactive dialog box) when every user log in or unlock session or remote connection to this server.  In other words it have to be run every...

View Article

Change definition for a DataTable

Hello,I have a DataTable and it has certain columns with "Double" data type. I am out putting the DataTable by using Out-DataTable found at...

View Article

Powershell - Obtaining EventData from a specific event

Trying to figure out how to pull detailed information from the eventlog using powershell.I have been able to get a listing of specific events with the following line of code:get-winevent...

View Article

Convert-WindowsImage.ps1 Could not load file or assembly 'System.Linq,..' error

I tried the following: .\Convert-WindowsImage.ps1 -SourcePath C:\Backups\All\Files\Windows8-ReleasePreview-64bit-English.iso -VHDFormat VHD -SizeBytes 52GB -VHDPath C:\AllSharedC\VPC\Win8.vhdand got...

View Article


how to Install Azure SDK on Azure automation

i have a powershell script that connect to storage table and read the data from a Table.  which works fine on the local where Azure SDK 2.1 is installed.While i add it as part of Azure automation i get...

View Article

VHD2WIN - older client?

I am trying to use VHD2WIN, but the only script I can find to download is Convert-WindowsImage.ps1.  The problem is I have a Windows 7 client, and I am getting the error 'Could not load file or...

View Article


Query Active Directory and export to Excel Column

Hey Scripting Guy,I have an Excel Spreadsheet with a column of employees Last Name and another column with their First Name. I have a separate Column labeled  Username in which I need to populate based...

View Article

PowerShell Script: Autologon, select each computername with username and...

$csvfile = "C:\users\zahadadmin3\desktop\domain\computers.txt"  Import-Csv $csvfile | foreach {   $computer=$_.computer;  $user=$_.user; $password=$_.password; Function AutoAdminLogon2 {...

View Article


Image may be NSFW.
Clik here to view.

How to add a shortcut to "This PC" navigational panel

Hello All,I am trying to find out how to put a shortcut to a DFS Namespace under "This PC" navigational panel in File Explorer. I was looking at the Shortcut GPOs but it is not listed there.The reason...

View Article

VBSCRIPT: Permission Denied: 'Get Object' // Code: 800A0046

Hello All,I am very new to VBScript and am trying to work with an existing one that my organization has been using for a while. Unfortunately we've encountered the above error during a mass roll-out...

View Article

Powershell script - Copy file but only if the location does not already exist

Hello all!I am EXTREMELY new to scripting in Powershell.  I wrote the following super simple script to use as a user login script - New-Item -ItemType directory -Path $Env:Appdata\sap\common copy-Item...

View Article
Browsing all 15028 articles
Browse latest View live


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