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

WMI Filter on various computer names

I am trying to create a WMI Filter for a GPO using  Win32_ComputerSystem using Name to filter the results.  The problem is when I try to add multiple values with Name I get a syntax error.The statement...

View Article


How to migrate SQL Server Instance from Local Instance to Azure VM SQL using...

How to migrate SQL Server Instance from Local Instance to Azure VM SQL Server Instance?Seeking for experts support resolving following issue.Scenario:LocalInstance: SQLSRV01Azure VM: 23.96.20.20-Local...

View Article


Script Modification for Top 10 Senders

Hello,First of all Thank You for Richard L. Mueller as he helped me for this script very long back.I have following script which I've been using manually in daily basis. But how to modify and make it...

View Article

How to change StrongAuthenticationRequirements.State using PowerShell (MSOL)

Hi, According to this article: https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-userstates#use-powershell I should be able to disabling MFA using PowerShell with simple...

View Article

Install Fonts using a Batch File... Need Help getting the coding correct.

I have been on the internet and looked at multiple sites that give suggestions on how to install fonts on a local workstation using a batch. I can't seem to get them to work. I am hoping that some one...

View Article


powershell script to delete files worsk with 64bit 32bit dosent work

 if ((Get-WmiObject win32_operatingsystem | select osarchitecture).osarchitecture -like "64*") { #64bit code here Write-Output 64bit  if ((test-path -LiteralPath "$fileToCheck3") -like "True*")  {...

View Article

how to use Connect-MicrosoftTeams in script

Hi,I am trying to use Connect-MicrosoftTeams command and assign users to teams in Teams with scheduled script, according to group membership in AD. However, I have to always authenticate and also...

View Article

Question about this script "Write to HKCU from the system account"

So this is the original script: https://gallery.technet.microsoft.com/scriptcenter/Write-to-HKCU-from-the-3eac1692#contentMy question is, can you help me add reverse function to this script, to export...

View Article


powershell script to delete files works with 64bit dosent delete folders with...

Invoke-Command -ComputerName -Credential -ScriptBlock { $fileToCheck = "$env:LOCALAPPDATA\Microsoft\Windows Live Mail" $fileToCheck2 = "$env:APPDATA\Thunderbird\profiles.ini" $fileToCheck3 =...

View Article


Adding a variable to Octopus Deploy project issues

Hi,I am adding a variable to a Octopus Project and I cant get it to work. I am getting an error - You cannot call a method on a null-valued...

View Article

Create Multi-level folder or item in different PSDrive with powershell

Hi scripting Guys  When come to  different PSDrive like FileSystem Registry or MDTProvider,you want to Create  Multi-level directory or folder or item in FileSystem we have  Four Ways to realize it...

View Article

How to find all properties of RecordData from Get-DnsServerResourceRecord

When I use Get-DnsServerResourceRecord I can obviously get the zone details, but I'm trying to do a select-object on the RecordData column which isn't straight forward since it's not a simple text...

View Article

LDAP issue with powershell

Hello,I have created one PowerShell script to get the Active directory data. In which I used Active Directory Domain Services to get the data. I am using the JSON file to provide the Input.The command...

View Article


How to remove security permission from OU using command

We had delegated permission at OU level for some security groups. Since there are too many OUs so we had used DSACLS command. Now we have to remove permission from OU.ExampleGroup A currently has...

View Article

Unable to Automate RDP Using PowerShell

Hi Team,I have Azure - Windows Server 2016 VMs that are being used for testing. so i have a requirement where i need to Remote desktop into these machines and run my test. In this process i wanted to...

View Article


Unable to Enlist Target to MSX after Collation Change.

Hi folks,After changing the Collation of SQL Server to Latin1_General_CI_AI from QL_Latin1_General_CP1_CI_AS  I'm trying to add the server to MSX as target in CMS but Enlisting is failing. One thing I...

View Article

Error "Send-MailMessage : An invalid character was found in the mail header:...

I am trying to write the script to automate (using scheduler) departing AD user disabling.Script I gobbled up:"$bfile = "C:\Temp\disable.bat" $fromaddress = "<somegroup>@ssa.gov" $user =...

View Article


Setting AD attribute EmployeeType for all users

I am trying to set the employeeType attribute based on title for all users in the company.  If the title attribute contains the word "intern" the employeeType should be set to "Intern".  If the title...

View Article

Broken ForEach Command

hey all,I'm trying to create some AD groups en mass and I got the names in a CSV file that has been imported successfully, but my ForEach command isn't creating the groups, and it's not generating an...

View Article

Image may be NSFW.
Clik here to view.

Script to zip file

Currently we are backing up all our event logs to one primary file server but as time passed, the size grew tremendously. I am currently looking for a script which I can execute monthly to zip-up 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>