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

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 Article


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


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

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

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


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

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

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


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


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

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

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

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


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

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


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

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


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

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

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


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