Compare CSV - exclude if changed from this to that
I am using the Compare-object command to compare a CSV file. I am successfully using this to find the difference between two csv files: compare-object $yesterdays $todays -Property EMPLID,GROUP_NAME...
View ArticleWMI filter / WQL that excludes laptops?
I've been working on a WMI filter for GPOs that should exclude laptops and noticed that win32_portablebattery is probably the best class to check for this (particularly since win32_battery's properties...
View ArticleFree Beginners Manuals
HiCan anyone recommend a good free beginners manual to learn PowerShell pleaseI've been using the Owner Manual link which is good up to a point but included WebCastse.g.Getting Started With Windows...
View ArticleAdding a Sub to a Script
I new to this so don't laugh. I am trying to add a this '================================================================================================== Sub Exceltest Set objExcel =...
View Articlescript will not update the password
I am writing a script to deploy the automated bios upgrade the script runs fine until the point where it requires a password I have placed a statement in the script to add the password "REM if...
View ArticleUnable to reference items in a hashtable
HI, I'm having a bad PowerShell day today!My sample script to read in a text file and put the data into a hash table works just fine:$InputFile=Get-Content C:\Out\ktf06011.REQ $CurrentUserHashTable =...
View ArticleDisplay Message if Condition is Fail
HI All, I have task to copy files from source to destination.And if the files are copied successfully I need to perform some operations . And if files are failed in copying to...
View ArticleFind the last used cell in a column
Hi all,I am looking to use powershell to find the first empty cell in a column.I have a spreadsheet that lists information in columns A-F for a migration. It lists all the batches, dates, sizes, etc....
View ArticleFind Sql Version through powershell
Hi All, I have requirement to write power-shell script to find the sql version from control panel and display version of sql server and if not installed required to show message as "No Sql".Can...
View ArticleMailbox Folder Stats
Hi<o:p></o:p>I am trying to create a PowerShell Script that will return all users in the organisation that have a mailbox over a certain size<o:p></o:p>then loop through each...
View ArticleAlert for altering of file contents
Hi. I would like to know if it is possible to get a notification perhaps through a script, that will trigger whenever the content of a certain folder are changed and how I would go about doing that....
View Articlehow to combine swm file with powershell
hi,I get strucked in "combining swm file with powershell", there are two swm file in my volume D ,when i use the command "Export-WindowsImage -SourceImagePath D:\t.swm -SplitImageFilePattern...
View ArticleScript Grant Full Access Permission on Multiple Folders and Sub-Folders
Hi, I'm having a issue trying to run this script. 1.)It provides each folder with "Special" Permission over them. (Read, Write, Modify, Full control). Is there a way of making it "Full Control"...
View ArticleCreate Folder using powershell command
Hi All, I have requirement to create the folder using power-shell command.Can any one help me how can I create the folder by passing the parameterThanks, Sid
View Articledeploying software to multiple windows 7 workgroup, which required to be...
Hi,I'm on site system administrator of training room with 150 windows 7 PCs workgroup, I'm trying to install a 3rd party application (it a .exe file) to all the system. All my system is set to auto...
View ArticleQuestion from a noob
Hi, I am new to using scripts and html. In fact this is kind of my first real attempt at anything like this.I am trying to find a way to take a web page that i made with visual studio 2013 and take the...
View ArticleTrying to retrieve AD Object properties using the Get-ADuser cmdlet with...
Here is the following PowerShell command I am trying to run but keep getting errors and I am not sure what is missing$sAMAccountName=Import-csv -path Z:\PowerShellScripts\Input\username.csv |...
View ArticleScript to Remove old folders/files
Hi,I am looking to delete files which are older than 14 days on a particular share, i see that there are already various other versions of the script present but they do not seem to work since the...
View ArticleRemotely running SQL from PowerShell
HiI work for a Software House where checking files versions, running SQL to check tables is becoming run-of-the mill :)I'm very new to PowerShell so far and have just been playing about to find that I...
View ArticleForefiles: possible to delete after x days based on number of files?
Hi, I've searched around a bit, but haven't found a solution for my particular problem.We do workstation image backups which are saved to a NAS device. One full backup a week and differentials on the...
View Article