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

two qwery WQL SCCM

Hello.The goal is to create a PC group based on two queries:the PC name starts with W44%the client is not installedThe written request does not work, please tell me where the error is?SELECT...

View Article


Creating a scheduled task with custom date and times for multiple servers

Hello guys,I have the following problem: I want to create a scheduled task for windows updates which will execute a powershell script but I need to create the task on multiple servers with different...

View Article


PowerShell Scripting output issue

Hello All ,I have created below Script, the script is working fine and display the correct output with NumberofCores on the Screen. like NumberofCores             : {12, 12}But when I export it into...

View Article

Powershell cmdlet

Hi,i'm a quite beginner!how can i write a cmdlet?how can i have access to source of cmdlet?sorry if my questions are a bit stupid.Regards

View Article

Start scripting with SPO Office 365

Hello,can somebody help me how to start scripting for SharePoint Online in Office365Thank you!Best regards,

View Article


Computer object memberOf

Hi, I've written a script which gets a list of security groups from an OU, then for each computer object in that security group it moves it to an OU that matches the name of the security group. The...

View Article

Removing BUILTIN\Users permissions using powershell

Hello! This would be one of my first posts on this forum, I recently started Powershell not too long ago so I'm still a beginner.I'm trying to make a script that strips the BUILTIN\Users of rights from...

View Article

Can I count on count?

If I run the following PS script, it provides me $null as the count of a variable that counts 1 object. What can be in the background?$result=@() $line="" |select prop1,prop2 $line.prop1="apple"...

View Article


"The process cannot access the file "file.text" because it is being used by...

I have a PowerShell script which process SSAS cubes using schudling agent some time i get the following error is there away to  find what process is reason for this error and if there is away after...

View Article


How to automatically find the drive letter of a removable mass storage device?

I'm trying to figure out how to find the drive letter of my usb so that I can use it in a batch file. I don't want to change the drive letter, I just want it to detect the drive letter as it can change...

View Article

Parsing Windows event in hash table

Hi shining minds...! I have similar questions been asked many times but I just cant get it. I am hoping to seek some help.I am trying to extract 3 values from "Directory Service" logs in a table from a...

View Article

Loop through a folder and all subfolders in Powershell

Hey Scripting Guys,I found this Powershell command online:ls -r  *.txt  | % {(gc $_ | % { $_.TrimEnd() }) | sc $_ }to remove trailing spaces from the end of each line of each text file in a folder....

View Article

Infinite PowerShell loop using too much memory

I created the following PowerShell script with an infinite loop to provide a log of when we are experiencing a NSlookup failure.$arrDomains =...

View Article


List DNS Server Conditional forwarders with IP addresses and DDNS is set.

I am trying to find code to list the Conditional forwarders (Win2K8) or Forwarders (Win2K3) and the IP address associated with each forwader.Output Example:hello.com, 13.125.111.23, 125.45.12.25Does...

View Article

How to get virtual machine NetBIOS names? Can I use powershell to list all...

How to get virtual machine NetBIOS names? Can I use powershell to list all virtual machines hostnames (including linux?)I need a simpls list, a text file, with one hostname/netBIOS name per line, the...

View Article


Powershell script to detect if the latest patches are installed

I need to develop a script to read from .ini file to detect if the latest patches are installed.Can anyone give me a suggestion?

View Article

Get computer and system operation for given user Active Directory

hello ,I have a list of active directory users and i want to know their computers and the system operation for theses computers .I dont have SCCM to do that .So im lookuing for a script please Regards

View Article


PowerShell - Run 2 scripts parallelly

Hi Guys,Just trying to see if I can run 2 scripts in parallel. Instead of using Workflows, is there any other way we can run 2 scripts in parallelRegardsMikeMike

View Article

PowerShell: Cmdlet cannot be recognised.

Dear All,I have written a PowerShell script which uses OperationsManager as the module. Few of the cmdlets are giving output but I am getting below error while running "Get-SCOMResourcePool"....

View Article

Script not taking effect on Windows 7

I have this script running and had it working in Windows 10 machine but not in Wins7, which is odd because the script was created to run on Windows 7. What I did is I attached this policy under GPO...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images