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

Error Handling when piping output in workflow using inline script

Hello, I have powershell code where I am using Workflow and InlineScript. I  am piping output to an Object Property. For some reason Catch doesnt work when it encounters an invalid parameter. Please...

View Article


Set default printer via scheduled task/batch file not working

We are running virtual machines via Windows Multipoint Server and have spun up a new one, trying to resolve some issues. The printers are installed on the Hyper-V machine and I assign printers for each...

View Article


Create Shortcut In My Network Places Using PowerShell

Hello!  How can one create a shortcut in My Network Places using PowerShell? I found a method described using VB at...

View Article

uninstall of Office 2013 from powershell not working

I use the following:(Get-WmiObject-ClassWin32_Product-Filter"Name = 'Microsoft Office Professional Plus 2013'").Uninstall()To uninstall Office Pro 2013...but it's not uninstalling. It sets the...

View Article

Powershell: New-SMBshare cmdlet not working on remote server.

I am trying to make an all-in-one script which will create a share folder on a server, permission it (NTFS), share it, set share permissions, then set the DFS folder and target. All of this works fine...

View Article


Excel changing text/general to number format

In a powershell script I can change the format on a Excel column from general/text to number, however, it stays formated as text until you go in through error check and correct it or pull up each cell...

View Article

Scheduling Operations Manager Maintenance mode?

I'm trying to schedule Stephan Stranger's SCOM Maintenance mode script.  The issue is that I don't see a good way to pass the parameters the scripts is looking for via the Scheduled Task.Is there a...

View Article

Script to give a result then assign a variable to each with user intput

I am looking to have a script that will do a few things. My goal is to have the ability to look at Active Directory within a certain OU parent, allow the user to select one of the sub OU's, then yet...

View Article


How do i create a directory in powershell

How do i create a directory in power shell

View Article


Read a txt file and save the value to array --PowerShell

Hi Scriping guy.  Now i have a server name list , what i want to do was to build a array based on the txt file. The txt file looks like...

View Article

Semaphore with powershell

Hi guys,i have to implement a semaphore with powershell, but i have a problem:I have two job, and if the job1 is not completed the job2 shuoldn't start. I do a infinite cicle to read the state of job,...

View Article

VBScript - Logon to a MAPI Session - Run an app - Logoff a MAPI session

Hi All,I've never scripted and I'm after a method/script to do the following:1. Logon to a MAPI session using the default MAPI profile or even another profile (Without launching Outlook)2. Run an...

View Article

Get-ChildItem : The specified path, file name, or both are too long. The...

Hello all,I am trying to run a basic script to get a list or large files on a directory, however I am hitting the 260 char limit on either folders or filenames.  Is there a way to massage the results...

View Article


How to make the result showing one time and make the result to csv file?

My script having problem of showing out all the AD computer name result  from Active Directory once when running it and storing the result to csv file. I am a newbie in AD and powershell.This is the...

View Article

VBS script does not run when logged off

Hi Guys,I have scheduled a batch file to run at 3am every morning on my windows 2003 server. When I am logged on, the batch file executes perfectly, but when I am logged off it does not. The following...

View Article


Robocopy. Suppress alert "do you wish to set security on D: goto answer255

I am getting a bit frustrated with these out of the blue pointless alerts that stop my batch scripts dead in their tracks. Sometimes I say to my self, "what they heck were they thinking when they made...

View Article

Add hyperlink to 2nd jpg logo in VBS signature

Hello,I use a VBS for an email signature.I want to add a hyperlink to the 2nd image (jpg) of my signature.Here's part of the code I'm using: Set objShape = objSelection.InlineShapes.AddPicture(strLogo)...

View Article


Remove keys, values and data from registry

Hi I am new to powershell and want a help in removing a registry entry.I want to remove everything related to cisconac from HKLM in registry, this is what i have got so far but its not working...

View Article

VBS Script to add and remove computers from a group

Good Morning everyone I need some help, I need to develop a script with excel vb + to do the following:  I select a group of ad through a comboBox and that in another box I specify the computers, just...

View Article

VBA Internet speed

Hi I'm new to this type of scripting however know a bid of VBA and MSaccess. However this is my first project using WMI.Did a function with pingstatus that went well.I'm now trying to measure my...

View Article
Browsing all 15028 articles
Browse latest View live


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