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

Powershell: Set Access Based Enumeration on share in Failover Cluster

Hi guys, I'm facing the following problem. Below you see my script to create a shared folder. (My folder share is visible in failover cluster manager, underneath clustergroup TESTSTO01.)  Now I need to...

View Article


Forward emails to 365 account, with multiple e-mails

Set-Mailbox -Identity John -DeliverToMailboxAndForward $true -ForwardingSMTPAddress manuel@contoso.com This is the script I am looking for but I am not sure how to add multiple emails. 

View Article


Function for connecting to Exchange

So I have a function that does a remote connect to the exchange server for use on admin workstation.  I check for the FQDN, if it is just a hostname, I append the domain.  I use this function as part...

View Article

Getting current directory for shortcut running as admin

I have a shortcut to a batch script. Shortcut is running as admin.When I open the shortcut, it defaults to %systemroot%\system32Is it possible to:1) Have a shortcut to a batch file that opens as admin,...

View Article

Script Help Needed!

Hello,Im wondering if anyone can help me.  Im getting to grips with the basics of Powershell now but Im attempting to setup a little script that will assist me and the rest of our exchange...

View Article


Problem with understanding syntax: mandatory

Hi forum, there is a script in the technet.gallery: http://gallery.technet.microsoft.com/scriptcenter/How-to-check-if-Active-f27b7d39 (How to check fi Active Directory User password is expired). I'm...

View Article

VBScript to get machine details

Hi Everyone,I have the below vb script to ping a list of machines and write machine name, IP and status to a excel.Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set...

View Article

Check if Automatic Updates are idle/running? Check if reboot needed?

Is there a way to find out if scheduled Automatic Updates are idle or in progress (checking, downloading, installing)?Is there a way to find out, if scheduled Automatic Updates are done, if a reboot is...

View Article


Setting permissions on local printers

HiI'm in an environment that uses locally installed printers, printing to TCP/IP ports for their printing solution. I want a script (preferably Powershell) that will allow me to assign "Everyone"...

View Article


powershell not mapping drive from bat file

Once again, this GREATLY dumbed down to simplify the error. I have a bat file that maps a local drive from a UNC share. Contents of my bat file (map.bat) are:net use Z: "\\myserver\e$\apps\Data"...

View Article

Adding more than 1 Excel Addin into this PowerShell Script

Hiya,I am using this script from http://poshcode.org/1811 which adds in an Excel Addin however I need to modify it so it adds a second add-in if possible but I'm a novice PowerShell user and although...

View Article

Using IExpress to Create EXE From VBS on Windows 7 for Deployment on Windows...

For some time, I have been successfully using IExpress to create EXE files from VBS on a Windows XP workstation for deployment to both Windows XP and Windows 7 workstations. Within IExpress, I use the...

View Article

Using Powershell to create Pervasive database

In my quest to replace a bunch of old scripts and programs (blend of VB, bat files, manual intervention) to automate some processes, I'm trying to create a pervasive.sql database with Powershell. They...

View Article


Image may be NSFW.
Clik here to view.

Errorlevels not being reset

Ok, so I'm quite embarrassed to post this but I'm completely stumped.  I've tried it across various computers and the same result.  When I use a batch file or go direct to the command prompt and enter...

View Article

Add-OdbcDsn giving error code 11

This "should" be simple, yet, here I am. So, I'm just trying to add a 32-bit System DSN, using Add-OdbcDsn as follows:Add-OdbcDsn'mydb'-DriverName'Pervasive ODBC Engine...

View Article


AD user script to populate the IPPHONE attribute with the last 4 digits of...

Good Afternoon Scripting Guys. I have a script that I have been working with pretty much all day today and just cant quite get it to play nice. Our objective is to search AD for specific users (say...

View Article

Win32_bios and Win32_computersystem batch file for WIndows 7

HiI have a Batch file that currently works on Windows XpIts a remote function to provide me  Serial number and model of a pc using the pc name, from our networkIts works on a windows xp machine to get...

View Article


Powershell - list local user accounts and their group membership

Hey guys,I need a powershell script for creating a list of all local user accounts together with their local group membership. Does anybode have an idea how to figure this out?Regards,Martin

View Article

Shutdown a computer remotely by running a .bat on a second computer connected...

Hello,To try and avoid confusion.Computer 1 (The one with the UPS)Computer 2I have two computers connected to the same UPS. I have created a .bat that when run from Computer 1, allows me to remotely...

View Article

New to Powershell Scripting

Hey,New to PowerShell scripting and new to the forum.Have been given a task to populate the 'Company' field under 'Organization' in AD and would very mush appreciate some guidance.Don't want to...

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>