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

Get OS of system from AD and add it to a group.

Hi,I want to Add all windows 8 and 8.1 machines to particular group. What i want to do is recursively search machines in AD for Win 8 or 8.1 OS and add them to group. This is the code i wrote but its...

View Article


PowerShell Error - A variable that cannot be referenced in restricted...

Whenever i run my script on my window 8.1 using PowerShell (Run with Administrator), it will prompt me the error as below when it run till certain script.A variable that cannot be referenced in...

View Article


RemoteApp script to REMOVE a connection similar to Install-RADCConnection.ps1

Is there a command argument like tsworkspace,WorkspaceSilentSetup to Remove a workspace like when you use the "Remove" link in hte UI from Remote and Desktop Connections tool in Control Panel?

View Article

A question about execution policy RemoteSigned

HelloI always thought from what i read in the past, that if your PoweShell execution Policy was set to RemoteSigned and you create a PowerShell script on  computer-A then copied it across the network...

View Article

Health check for more than one servers

hello,i found a script for health check, i ll put a fragment of it. i know how to loop with foreach command but i dont know how to insert all the datas for the same html file in different fragment. i...

View Article


FilePath On Remote Machine

Hello,I want to find out if a running processor(Illustrator) on a remote machine is 64-bit or 32-bit.I found out a way of finding the path where the .exe is running - for example the path for32-bit =...

View Article

Outlook Application

HelloI would like to use the following PowerShell script, however, while executing$outlook = new-object -comobject outlook.application nothing is return to the $Outlook variable.. I am using OUTLOOK...

View Article

Using Copy-Item to overwrite files in remote server directory

Hello,I am trying to copy newer files over older files from my workstation to a server using the copy-item cmdlet.The cmdlet looks something like this:copy-item *.* \\servername\c:$\pathname...

View Article


Allow all mailbox users to send emails up to 100 recipients (Exchange 2010)

Greetings,Could you please help on writing a Powershell script using Exchange Management Shell on how to realize the following:I want to grant all recipients the ability to send emails up to 100...

View Article


Powershell replace text in multiple files lookup CSV

Hiya guysAfter some guidance please.I have a CSV with following detailsMailboxName, PRFNAME,TempConstantusera, a, usera.prf,TEMPLATEPRFUSERuserb, b, userb.prf,TEMPLATEPRFUSERuserc, c,...

View Article

Counting & Securely Deleting (sDelete) files that are older than 1 hour.

** Thanks in advance to anyone that contributes knowledge.  Note: I am still new to PowerShell. **The goal of the script that I need help with does the following: - Keeps a count of the total number of...

View Article

powershell - requirement to replace SQL INSERT text with escape character for...

 I have successfully loaded a $dataSet with MS ACCESS data and need an If statement to replace apostrophes, AND other French characters with a preceding ESCAPE character to allow the building of the...

View Article

WMI object for listing Radius server and clients

WMI object for listing Radius server and clients

View Article


Exchange mailboxes, corporate AD, forest trust, arrays, Can you look this over?

This is my first script, it took a while to figure some things out, but it is working. I wanted to know if it is overkill, or if there is something that sticks out that would be an easier way of...

View Article

Convert distinguishedName to Domain\SamAccountName

I have a list of distinguishedName values for either a user or group in a text file. The user or group are in different child domains. I'm trying to figure out the out put to be CN...

View Article


Powershell DNS Query

Hi all,Can anyone help or give me an example for completing a DNS query across multiple DNS servers on different domains? For example server A is on DOMAIN A with a DNS server of 10.1.1.1 and Server B...

View Article

export selected files to a local folder (copy - pate by vbs)

I need to select severel files from severel subfolders in"/my pictures" and send them all to a new folder (C:\Users\me\Desktop\print).Idea is: I will manually mark the files (Ctrl+mouseclick) and then...

View Article


Batch File

Hi All,how to make bat file with administrator username & password to run in limited user access.Thanks In Advance

View Article

Get FileName without Extension?

Using windows vbscript, how can I get the filename without extension?Here's my codeset wshell = createobject("WScript.Shell") CurPath = WShell.Currentdirectory Set fso =...

View Article

Export SCCM Report to CSV

I am trying to create a Macro based Excel file that would contain a Macro, when executed would download a SCCM Report into a CSV file. At the moment I have to manually go to the webpage, wait for the...

View Article
Browsing all 15028 articles
Browse latest View live


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