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

Search Microsoft Excel Workbooks for Links to Other Workbooks

Hi there,Currently working on a data migration project where I need to identify Documents (mainly excel spreadsheets) that have external data sources.  I have come across the following PowerShell...

View Article


Try/catch Powershell don't work

Hi everyone,this is the my code:try{New-Item -ItemType directory -Path './log'}catch {Write-Host "Error: Just Create"} but the try and catch don't work. Why?Thanks for the helpfulness.Cristian

View Article


Accessing Printer through SNMP in powershell???

Hi,I want to access the printer's toner level etc. information. I have installed the service on my Windows 7 both SNMP and Traps.What I can not find out is that how do I access the printer using SNMP....

View Article

AD account creation HELP!

Hello, I was wondering if I could get some help on a script I created. Our environment is setup with Windows server 2008 R2 (just recently upgraded to 2012 R2)  we do not use ADFS servers we use...

View Article

Remove MAC address from DHCP Scope level Policy

I need to be able to remove a MAC address from a Scope level policy when the user gets a new device. The policy was built with a script so I was hoping it could be edited with a script. It would be a...

View Article


Export-StartLayout Issues: I get an error!

Hello, Do not know if I posted this on the correct forum: my apology if I did not. I am about to deploy Win 8.1 onto our biggest lab and believe or not, I am having issues with exporting the XML file...

View Article

Using Get-ADUser but 3.0 needs a filter? What changed?

I'm trying to just do a basic query of AD attributes from a text file of SamAccountNames I have, but I'm upgraded to PowerShell ISE 3.0 and there might be some things new I'm not understanding. I was...

View Article

powershell running out of order

Import-Module activedirectory $opt = read-Host 'Would like to see a list of DNs from which to choose? (y/n)' switch ($opt) { y{Get-ADOrganizationalUnit -Filter 'Name -like "*"' | FT Name,...

View Article


Copy script pauses and fails to complete when it encounters insufficient disk...

I'm trying to get a script running that will copy the latest full backup and incrementals to a USB device. I have got the script working OK in so far as it identifies the latest backup and copies all...

View Article


Download email content / text from Exchange EWS with Powershell.

I'm attempting to save email body / text from Exchange using Powershell. Would prefer to save as HTML, but to save as a txt file or .eml or .msg is ok too.I've adapted a script I used to do the same...

View Article

DOS Batch file help. Finding folders with multiple files

Can someone help creating a batch file? I need to find all occurrences of file "X.txt" where file "Y.txt" is found in the same folder as "X.txt".  So we will have "me.txt" in loads of folders, but some...

View Article

Invoke-command -computer "use variable" problem

Hi expert:Below is my code invoke-command -computername dc01,dc02,dc03  { $name = read-host  "please key in  username" $xmlfilter=[xml]@"<QueryList>  <Query Id="0" Path="Security">...

View Article

FTP -> Local disk mirror

Hi, is there any utility to do mirror of ftp to local disk like every 20min?Thanks.

View Article


Script to Get CPU and Memory Information of Multiple Computers Listed in Text...

Script to Get CPU and Memory Information of Multiple Computers Listed in Text File.Pranay (MCSE, MCITP)

View Article

Text whith a list of files

i am working in a script:@echo off @color A Robocopy C:\emp G:\Backup-emp\outro/emp /E /Is Robocopy C:\Programas\SIREdit2 G:\Backup-emp\eu/SIREdit2 /E /Is Robocopy "C:\Documents and Settings\outro\Os...

View Article


How to disable "Open in Immersive Browser" in IE 11

Hello,<o:p></o:p>I am trying to stop our users from using the Immersive Browser in Windows 8.1 and IE11, as our filtering is done by a local application using a plugin. This BHO does not...

View Article

Script to disable users and export their files and email...

Hey Scripting Guys...I have a script that I wrote for terminating users.  It disables the user, stamps the account with the time and date, removes them from all their AD Groups, exports their email to...

View Article


Image may be NSFW.
Clik here to view.

dfs recommended staging quota and invoke-command

I have this script. That finds all the dfs servers, it then gets me the path and I use that to try and find the recommended staging quota size.        Get-DfsrMember | Sort ComputerName | % {    $site...

View Article

VB script to supply BGINFO with Activation Expiration from slmgr.vbs /dlv

Mission:  To display the Activation Expiration "days left" in BGINFO.Efforts:  I have found a couple of different command prompt commands to give me this information. I have even saved this data to a...

View Article

Powershell | Validate & Report Folder Structure in a Network Share

Hi! Does anyone knows of a function/script that will validate the folder structure within a directory? We have about 5 specifically named folders that need to exist at all times within multiple shares...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

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