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

Exit workflow when any error occurs.

Try catch exit works in function but not in workflow. How can I exit when any error occurs in a workflow? workflow test { $servers = "c:\list.txt"    foreach -parallel ($server in  get-content...

View Article


Exporting Crystal Reports with Powershell

Hi, I am trying to generate some reports using powershell. The report can be loaded in a crystal report viewer. But now I want to export it in the pdf format. below is the script I have written so...

View Article


Update Help on disconnected Windows 8.1

I have a Windows 8 system on a disconnected network.  I would like to update the help.  I have a Windows 7 system with PowerShell 4.  Is there any way to update the help for all of the Windows 8...

View Article

Get-WUInstall write Console output in to Logfile

Hi all,I want to use the PS module PSWindowsUpdate Get-WUInstall. The module dose what I need but I cannot generate a Log file. There is no Log file parameter neither worked anything I tried like...

View Article

how to list local admins of in AD as a txt file which has a name as date of...

Hello, I have a script which lists local admins of all hosts in Active Directory:$Searcher =New-ObjectDirectoryServices.DirectorySearcher([ADSI]"") $Searcher.Filter="(objectClass=computer)" $Computers...

View Article


Powershell - Post Method - Server not Accepting the Cookie

I am trying to download the contents of an ASP page by using HTTP POST method in Powershell. Initially to get the SessionId, I request the webpage with default GET method. I extract the SessionId...

View Article

Mapping custom network drives and using AD groups

I'm trying to write a script that maps users to custom drive mappings (mapping not assigned in AD) and pull drives from AD. As of now I can achieve my goal but the problem is when a user doesn't have a...

View Article

A script to copy remotely

Hello ,I need a command/script that will enable me copy files between remote computers in the same subnet. and I want to be able to do this with close to a 100 subnets with as little manual...

View Article


PowerShell to Live Migrate

I have a scenario here.  I have 10 clusters (2 nodes each cluster)I would like to LiveMigrate only a single VM, which is very specific and not mission critical to test the VM every month.  This is to...

View Article


Removing modify/sync NTFS permissions using removeaccessruleall in Powershell

Hi,I've got a script together which removes all non-inherited groups from a user's home folder. It's working fine until I run into groups which have modify/sync permission. Even though I'm using the...

View Article

Execute the batch file at specific process count

Hello Everyone, I have a batch file which kills the wscript.exe process, I am doing this manually, I need to schedule this batch file to run from task scheduler whenever the process wscript.exe reaches...

View Article

VB Script to move a file with date in name

I'm so stuck but I know Im close.  So its friday and I'm brain dead and I'm asking for some help please.I have FILES starting with dates140729HDF0.835140730HES0.835140731UHG0.835and I need to move the...

View Article

Crawl log details for individual application

$ssa = Get-SPEnterpriseSearchServiceApplication; $cs = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint Sites"; Write-Host "Successes:" + $cs.SuccessCount;...

View Article


Installing Windows Updates with VB Script

Hello,I'm using the script from 'http://msdn.microsoft.com/en-us/library/windows/desktop/aa387102%28v=vs.85%29.aspx' to install all updates for windows. The script works fine for Windows Server 2008....

View Article

I cant connect anymore to remote host without specifying the FQDN

Hi guys, I've a strange behavior when working with remote hosts ( create or enter a new pssesion, or invoke-command) :It used to work with netbios name, but now i have to specify the FQDN of the remote...

View Article


How to create a script via power shell to scan the new location of the PDF...

Hello,I am trying to hyperlink some pdf files on the local network to a Excel sheet. Those pdf files will move around depending on the project stages. I'd like to dynamically hyperlink the files with...

View Article

Msinfo32/systeminfo - Export Category Isolation

I have a network of 3000 PC's and we are in the middle of a Windows 8 Migration. I need to write a tool that will allow me to paste a ton of hostnames into a txt file (or I can write a batch to do it,...

View Article


how to list local admins in AD as a txt file which has a name as date of the day

Hello, I have a script which lists local admins of all hosts in Active Directory:$Searcher = New-Object DirectoryServices.DirectorySearcher([ADSI]"") $Searcher.Filter = "(objectClass=computer)"...

View Article

new-partition -disknumber variable problem

Hi,When I use the New-Partition -DiskNumber $disknumberi get an error which says the argument is invalid, however if i change it to be New-Partition -DiskNumber 3the command succeeds. the variable is...

View Article

Using Powershell to Move & Rename a File

I was wondering if there is a powershell script I could run as a scheduled task that will perform the following:Move file from "C:\Program Files (x86)\NCSOFT\Aion\Chat.log"To...

View Article
Browsing all 15028 articles
Browse latest View live


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