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

Powershell, System.Diagnostics.Process and asynchronous reads

Hello all,I am trying to launch a process and grab the StandardOutput and StandardError using EventHandlers and BeginOutputReadLine.  I can launch the process but I getException calling...

View Article


shutdown service : etl trace

temporary, i want to stop .etl traceit's possible to use administrative tools services for shutdown etl trace like...

View Article


Not able to read email using python script when i schedule it on windows...

I can read and send email using my python script when i run it mannually on windows server 2012 r2. I am using mapi. When i schedule it via task scheduler , it is not working on my win server 2012r2  ....

View Article

How to run .exe as a service?

I have .exe file. I want to run it as a service. I try this way fom cmdsc create "MyServ" binPath= "D:\app.exe" it return this[SC] CreateService SUCCESS I open Services window and MyServ exist. I...

View Article

automate new accounts

Hi,I need to work out new accounts that created on a daily basis, then using that output I need to then connect to exchange 365 and set their calendar permisisons and their quota limits;So Far I have...

View Article


Unable to import-module in Powershell

Running Windows 7 X64. Installed Windows 7 RSATWhen I try to import grouppolicy module, I get the following error:The specified module 'grouppolicy' was not loaded because no valid module file was...

View Article

Unable to Export-CSV & Export-Excel with file $path

Unable to Export-CSV & Export-Excel with file $path   please help me on this.   Able to export with full path Export-excel "c:\123\test.xlsx" But   Not able to export with below $path =...

View Article

Set-ADUser : The specified attribute is already present on the object Logon...

Hello team,Thank you for passing by, i tried to google the solution for this for the last hour but not found nothing relevant, all the solutions provided are not working for me...I'm trying to set the...

View Article


Exclude a particular group members from querying in AD

I have a below existing script which will fetch the users and disable who are not logged in (inactive) for 90 days with different conditions. Now I need to exclude the members of an AD group so that...

View Article


The property 'Model' cannot be found on this object. Verify that the property...

After running script  switch ($ComputerSystemInfo.model)                     {                                                            "Virtual Machine"{$MachineType.model="VM"} The property 'Model'...

View Article

Send csv file from server 2016 to ubuntu 18 via powershell

Hi allwe need to made a script to send a file csv from Windows server 2016 to ubuntu server 18. On ubuntu, try to install vsftpd and from windows (Filezilla software) we can access. But when try to...

View Article

Image may be NSFW.
Clik here to view.

Why not able to change timer for saver?

Referring to following link, after running those coding, I would like to know on why not able to change timer for screensaver.<# .SYNOPSIS This script can be used to set the Screen Saver Timeout...

View Article

Powershell and LDAPS

Has anyone tried to use PowerShell to perform a secure LDAP (LDAPS) query of either Active Directory or  LDS? I've got a script that runs fine on port 389 (unsecured LDAP), but I can't get it to work...

View Article


Extract Windows eventID 4624 and 4634 using powershell

Hi,i'm trying to extract EVENTID 4624 and 4634 for a specific user. I've been searching over the web, and let's say i'm not a powershell expert, so i'm learning while searching for the answer.I got a...

View Article

Extract Windows event 4624 and 4634 Log using powershell

Hi,i'm trying to extract EVENTID 4624 and 4634 for a specific user. I've been searching over the web, and let's say i'm not a powershell expert, so i'm learning while searching for the answer.I got a...

View Article


Disable\Enable all input using in vbs file

Hello, TechnetiansI am in need for some helpI need to disable all user input (keyboard\mouse) using vbs script file.Any help will be highly appreciated!If you find this post helpful, spend a second to...

View Article

Account expiry dates or account Never expire for all AD users

hi.I have below powershell command but its not giving me exact date of user account expiry dates or those users account is set to never expires list...Search-ADAccount -AccountExpiring -TimeSpan...

View Article


Export Register Key via Powershell with space in Path

Good dayHope you are wellI need to export, Import and delete a register key via powershell, however that is a space in my pathreg export HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Devices...

View Article

Find largest files in directory and delete them

Hi,I'm looking for a Powershell script dat finds the three largest files in a directory tree and delete these files. I found a script that lists those files, but how to delete them?Here is what I got...

View Article

Batch file or similar more modern form of script ?

I need to create a batch file to do the following and I tried a bunch of things but I am not a programmer.1. I need to be able to specify the min and a max number.  I tried:FOR /L %X IN (100,1,102)I...

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>