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

active directory powershell

I have not quite found what I am looking for and the script snippets found so far, vary enough from my purposes leaving me a bit mystified.  I am trying set the attribute, employeeid = description...

View Article


unzip files using power shell throwing error

$shell=new-object -com shell.application $CurrentLocation="c:\temp" $CurrentPath=$CurrentLocation.path $Location=$shell.namespace($CurrentPath) $ZipFiles = get-childitem *.zip $ZipFiles.count |...

View Article


Create DFSR Replicaiton Group using WMI & Powershell

Hello, i am trying to create powershell script to create and configuration DFSR Replication group. i tried to find the WMI classes for DFSR. closest i found was for Group configuraiton is...

View Article

Best way to monitor link quality with powershell

I am planning to use test-connection to test link quality of devices. I wrote the following but I was wondering if there was a more accurate way. I just created an array of numbers to test my logic out...

View Article

Cannot index into a null array.

Hi guys I have an issue with the script below. It works if I run it from the powershell command line (it updates the SP list), but it does display an error message "Cannot index into a null array."...

View Article


Modification of 'Exchange 2007/2010 Email stats' script

I need help to modify a script that returns all exchange 2007 MB traffic http://gallery.technet.microsoft.com/scriptcenter/bb94b422-eb9e-4c53-a454-f7da6ddfb5d6#content but am not having luck modifying...

View Article

Need helping creating a message box on remote computer

This is the code below I used to create a popup message on a remote PC but for some reason it will only stay on the screen for 60 secs and then it will drop off, I have added a sleep also and still had...

View Article

Script to indentify WMI issue

Hi All,       Can anyone provide me a script to find if there is an issue with WMI and then fix it(Both for Windows XP and WIN 7).

View Article


change computer name and add computer to domain using powershell script

I need to come up with a start on this which I don't know where to begin.Change computer nameadd computer to domain

View Article


simple batch file to deploy software help.

Hi all,I am going to use this batch file to deploy one software to users through logon script:@echo off if exist %appdata%\myflag.txt goto :EOF \\server\share\setup.exe if errorlevel 0...

View Article

Not sure what is broken Trusted site function

<#    Script to set a site into the trusted sites zone on a single workstation#>FunctionTrust-Site{<#.SYNOPSISTrust-Site adds a registry to the a machine trusting a internet...

View Article

Is it possible to script RDP to retrieve the content of a short .txt file...

NetBios ports are not opened.  Only RDP ports and SCOM ports are open with server. I just need to retrieve a small txt file (under 1kB). Do you see a way to do that? SCOM can not do, I was hoping RDP...

View Article

New to Powershell, question on performing an operation to convert MB to GB

I am new to powershell and am working with Equallogic's powershell module to try and generate some specific reports on the volume information.  I have written the following script:...

View Article


I am not sure what i am doing wrong. PS function

<# Script to set a site into the trusted sites zone on a single workstation #> Function Trust-Site {<# .SYNOPSIS Trust-Site adds a registry to the a machine trusting a internet site....

View Article

Good way to tombstone record from WINS using powershell

I can use netsh to "delete" a record from a WINS server, but if that server isn't the owner, then the record will come back after replication.Is there a way to "tombstone" a registered server in a WINS...

View Article


simple - check file, if found how old? if less than a specified hour email alert

Hello AllI'm new to PowerShell and have found a lot of information and examples in the forums but I'm stuck and need quick help.I need to check a shared drive for specific files - specific suffix...

View Article

Image may be NSFW.
Clik here to view.

select-string format - new line for each string in email body

Hey scripting guys,I am an amateur at powershell at the best of times. But here we go.I need to change the formatting of an output so that it displays a new string on each line.Here's the part of my...

View Article


How to use Robocopy all files of a given files extension from all folders of...

I have files of identical filenames and file extensions (say *.txt) created in different folders in a drive, and I need to extract only the latest version of all these files from those folders and put...

View Article

Out put file information isn't complete

For some reason my out file is only showing me the information gathered from the last loop and I need it to show all of the information gathered during all of the loops. The below script is what I'm...

View Article

Delete DNS A Record

I want to delete a record from the DNS, with the computer i specify for him.I found this in microsoft site : dnscmdServerName/RecordDeleteZoneNameNodeNameRRTypeRRData [/f] (Didnt test it yet)But there...

View Article
Browsing all 15028 articles
Browse latest View live


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