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

Having problems with setting Applocker policies GPO through Powershell

I built a powershell script to automate the setting of a GPO for Applocker so it can be deployed on multiple domains. Unfortunately I receive a weird error when the GPO has been set, in the console of...

View Article


how to select more folder?

Hi guys,I want to get more info out of my folders, at the moment i will receive an email if nothing has been added. My problem is i dont know how to let the script run for multiple folders. Any help is...

View Article


Managing Distribution Group via Powershell Script

I have a request to automate management of a Distribution list. The idea is that corporate will send my organizational unit a CSV file monthly and all users listed in that file must be members of a...

View Article

Active Directory - PreHash Password While creating Users

Hi  We are trying to automate the Active Directory Deployment in cloud, as part of that we are looking to create users provided users provide us a pre-hash value of their password and using that we...

View Article

Need to get the output of two commands in the same table.

Hello, I am trying to run a script that will find all the usermailbox in Exchange Online and extract the following data in a table: 1. Name. 2. Email Address. 3. Office location. 4. Mailbox size. 5....

View Article


BCC in VBS Email Script

I would like to add a BCC list of emails to an existing VBS Email script.What command do I use to add this in, or how can I add it in?Thank you.

View Article

Invalid Characters Invoke-Command

Ok I'm trying to run a invoke-command against my entire AD (computers).For some reason it keeps returning:"One or more computer names are not valid."I have read it is probably an invalid character...

View Article

Share auditing for single server and shares

Powershell Noob. I have a minimal programming experience but enough to understand certain workflows. After a long time of searching the internet for a way to get the user and groups in a share I yet to...

View Article


Replace Word

Guys , I would like to Replace  word : DWH_SRC_ID           CHAR(4)                        not null title 'Source',  into empty . Can you please share me any commands to do . I tried with below...

View Article


DHCP monitoring - Specific Scope

I am using the below script for DHCP scope monitoring. https://gallery.technet.microsoft.com/scriptcenter/Get-DHCP-Statistics-and-f29359a1#contentNow i want to monitor only for specific...

View Article

Loop part of powershell script X times

Hi all,I'm currently working on some smaller school scripting projects for upcoming exams. However I can't seem to manage to run a certain part of a script X amount of times by a variable.So far I have...

View Article

bitlocker unlock fixed drive recovery password

we have servers that have fixed drives in which bitlocker locks during reboot. we need to unlock them with a recovery key but right now it is a manual process. below is the powershell component I wrote...

View Article

How to set the result on MSOLUser from Get-AdGroup

I need to get the status on O365 for users which are members of a group:This is is startup script.$address =@() foreach ($user in (Get-ADGroupMember -Identity "TESTGRoup" -Recursive)) { try { $address...

View Article


External Contact SIP Address O365 PowerShell

Hi,Is there any way to add a SIP address to an external contact on Skype for Business online/Azure AD?I can add a contact using PowerShell using New-MailContact and add a...

View Article

Learning Posh

Learning Posh

View Article


Image may be NSFW.
Clik here to view.

"RemoteApp and Desktop Connections" fail to update via command

We're having problem in our environment and need to trigger the update for RemoteApp and Desktop Connections.If i manually click the button, it prompts for credentials, the user enters them, and it...

View Article

Powershell CSV import returning null

Hi there,I've currently got the code down below, however I get a null returned on the $userpass variable, I've checked the CSV file and all should be correct.Import-Module activedirectory #Dit deel van...

View Article


script works but creates super long login times

All,I've created a script that creates several network locations to replace mapped drives. The script works and when I run it manually it takes less than a second to do it's job.After adding the script...

View Article

run command on remote server.

Hi Team,Want to run below this command on all remote server and generate the output file on a central location.this command only work when we open a command prompt or PowerShell run as administrator...

View Article

PowerShell Help

Hi All,Slight amateur here so please bare with me.I am working on a script and am wanting the script to stop and send an email notification if disk space is below 2gb  I just cant get my head around...

View Article
Browsing all 15028 articles
Browse latest View live


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