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

Outlook remove empty pst folders from stores with powershell script

I created a script that finds all pst folders in the My Documents folder of a user, moves those PST files and attaches the PST to outlook after they've been moved.If PSTs in a user's my documents...

View Article


how to silently install manually downloaded windows .net Framework security...

Hi,I would like to know how can I install the following packages silently with zero user intervention through batch script.vcredist_x86.exe...

View Article


Image may be NSFW.
Clik here to view.

powershell : select user/group to join computer in domain

HiI'm waste a lot of time trying to find how can I set user or group who can join newely-created computer in AD to domain.When computer created via GUI way it's looks like this: I can't find...

View Article

How to check if $($var) exists?

Hi guysI hope you can help me!Let's say I have this:$XXX = "TTT" $Department = "XXX - Hello" $Test = ($Department.Split(" "))[0] If($($Test) -eq "TTT") {Write-Host "Does it work?"} The If statement is...

View Article

Why does IF [!LoopMo:~0,1!] result in an error?

In the following script IF [!LoopMo:~0,1!] gives an error while IF [%LoopMo:~0,1%] does not.I understand that I do not need the ! and that in this case the % will do but I would like to understand...

View Article


Radio Button Condition

I have an HTA/Vbscript with two radio buttons, and an input window. I have a condition to check if windows in not complete then "Finish" button is disabled. I would like to add that if None of the...

View Article

Get all users' group memberships, non-Active Directory (PowerShell)

All of the snippets I've found for listing all users and all groups associated with those users assume the system in question is under Active Directory control. I wish to obtain this listing for a...

View Article

Obtain reason for AccessCheck failure

As a specific user on a specific file object, requesting file read and read security permissions on said file results in an access check failure. I wish to dive in to the actual reason why the access...

View Article


Bulk Add Users to Group Using Log on Name

I have found that the following windows command will add a user to a group in AD: dsquery user -samid <logonname>|dsmod group...

View Article


NetAdapter module cmdlet not working on Windows Server 2008 R2

HI,I have upgraded the powershell version on Server 2008R2 to 3.0, even though NetAdapter cmdlets not working.  Then , I searched about this issue and few recommended for updating Powershell to...

View Article

PowerShell - Trouble with using ASSOCIATORS OF

Hi All,I have been playing around with associating related classes recently and have had reasonable success, however I am stumped on this one.I am currently querying HP hardware using WMI using the...

View Article

moving files with .bat by age

So I need a .bat to move not copy the oldest .txt file in a folder to another folder. The .txt files are quite often less than 30 min old, if the files were days apart I wouldn't be having a problem....

View Article

How to return a specific date/time range and last event details, when...

I am new to scripting (literally started reading/learning scripting a few hours ago), and I am stuck in trying to get my current script/command to filter a specific date range.* Note: I am working with...

View Article


Trying to display multiple people from different titles

Get-ADUser -Filter {Title -like "Director"} This is what I've come up with. I want to display more than just director but I don't know how to do that. I have tried to use spaces and other things but I...

View Article

data extraction

Hello great programmers, please i will like to ask of a question..i want to create a software that looks loops through all the links in a site and extract specific datas from each of them.the line of...

View Article


Using PowerShell to export data froma sharepoint list & empty field issue

When you use a simple script to export a sharepoint list to CSV it works fineex. "value1", "value2", "value3"However if you have an empty field it doesex. "value1", , "value3"bute the empty field...

View Article

If statement to check if exchange 2010 is enabled and then disabling

Hi, I am trying to automate our end user process and need some help disabling unifed messaging for those that have it enabled. I just need help with the $UM varable to get it to return a result that =...

View Article


Can Convert-WindowsImage convert a .WIM from Command Prompt's "recimg" on...

Hi Folks,I have been trying to do this several times, including with the UI. The UI afforded a bit more info; it was complaining about the .WIM metadata:********************** Windows PowerShell...

View Article

VBScript to check if the computer is present in Active Driectory

I want to know is there any script to check if the machine is present in AD or not. Like say i have a machine named XYZ and i want to check if this machine is in AD or not. Using VBScript how do i do...

View Article

Using delimiter in Powershell

I have a code to generate log for the Windows event. But the out put has the following format in one of the columns of my CSV File.Source Network Address : 172.10.30.10 format. I only want to extract...

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>