How to execute logon and logoff scripts using Group Policy Objects (GPO) - Active Directory (AD)

  Рет қаралды 26,385

NetITGeeks

NetITGeeks

Күн бұрын

Пікірлер: 21
@GabrielMontenegro-k5n
@GabrielMontenegro-k5n 9 ай бұрын
Okay this may be the reason why my O365 isn't executing.. Login script wasn't set into that directory. It was in the same shared folder as the O365 setup.exe.
@suffer7845
@suffer7845 3 ай бұрын
Did you figure this out? I'm trying to make a script now with GPO and Office Deployment Tool.
@DaniLearnsIT
@DaniLearnsIT Жыл бұрын
What happens if you point the GPO to a script in a different location rather than the folder where you are pasting the script?
@NetITGeeks
@NetITGeeks Жыл бұрын
It is recommended that you use this specific location. But with PowerShell scripts and many other types of scripts, you can run scripts located anywhere in a network. You can have a PowerShell script for example where the main script is located in the server but pulling additional scripts from elsewhere. So, that is what I would do if I want to implement this with scripts located elsewhere. Have the main script in the location mentioned in this tutorial but pull additional scripts into it from elsewhere within that main script. This way it is also make it easier to manage and administer the server. In fact, lots of large companies I worked use that technique.
@DaniLearnsIT
@DaniLearnsIT Жыл бұрын
@@NetITGeeks Thank you :)
@timecop79
@timecop79 11 ай бұрын
Good job, I'm working on something similar, I'm trying to add keyboard layouts for all users (French \Arabic) for exemple, the poilcy work fine with the powershell scripts but when I added it to mdt deployment it doesn't work, is there any other options to do it, thanks
@N.raju8247
@N.raju8247 3 ай бұрын
Sir when user login lan card enabled and when logoff user land disable how to set up it
@เต๋ากระดองทอง
@เต๋ากระดองทอง 11 ай бұрын
Thank you sir.
@أكلاتلذيذه-ز7ت
@أكلاتلذيذه-ز7ت Жыл бұрын
sir... i need help plz.... i need to run these commands on each pc/laptop on the network. so better to create a script for them all and deploy via gpo. so how to do it? - disconnect all mapped folders/drives - ipconfig /flushdns - ipconfig /release - ipconfig /renew - gpupdate /force - restart pc
@NetITGeeks
@NetITGeeks Жыл бұрын
I would recommend creating a PowerShell or bash script and then attaching it to a GPO. If I am trying to accomplish this, I would simply add this to logon script so the overhead is smaller.
@أكلاتلذيذه-ز7ت
@أكلاتلذيذه-ز7ت Жыл бұрын
@@NetITGeeks how to write the script for these commands?
@thushanbasnayaka4799
@thushanbasnayaka4799 Жыл бұрын
Does it works to windows server 2008 r2?
@NetITGeeks
@NetITGeeks Жыл бұрын
Yes, it should work on Windows Server 2008 R2 as well. This is a GPO in the AD so as long as your AD module is updated (via Windows updates), this should work).
@stephenvernon2431
@stephenvernon2431 Жыл бұрын
What if you need to run PowerShell in administrator mode?
@NetITGeeks
@NetITGeeks Жыл бұрын
I believe the logon/logoff scripts can be written to launch in admin mode even if a client logs in. I would have to look into this because it is most likely a simple code you need to add to the top of the script, which I have no idea at the moment.
@stephenvernon2431
@stephenvernon2431 Жыл бұрын
Thank you
@DangerMahs
@DangerMahs Жыл бұрын
@@NetITGeeks Hello, were you able to find information to run the scripts in administrator mode? My script requires modifying a registry key and does not start due to lack of administrator mode on a domain.
@JamaicanoO
@JamaicanoO 2 ай бұрын
@@NetITGeeks I am need this is.
@waffleMccoy
@waffleMccoy 10 ай бұрын
CAn it be done on command, without the users having to logoff and login again?
@NetITGeeks
@NetITGeeks 10 ай бұрын
Most scripts can be run using gpupdate /force command on CMD and it will pull the GPOs and scripts. But some requires a logoff/logon or reboot.
@motherload1122
@motherload1122 20 күн бұрын
Sank u fairy mach sanuja
Learn Microsoft Group Policy the Easy Way!
23:58
Andy Malone MVP
Рет қаралды 156 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Group Policy 5 Nuggets Every Admin MUST Know!
26:14
Andy Malone MVP
Рет қаралды 10 М.
Understanding Active Directory and Group Policy
51:56
Kevin Brown
Рет қаралды 1,7 МЛН
How to Migrate Group Policies into Microsoft Intune!
15:09
Andy Malone MVP
Рет қаралды 25 М.
Create Login Script Through GPO
9:10
All Training (Alltrainingrajper)
Рет қаралды 10 М.
Windows Active Directory, how it works? Users, Permissions, Policies
24:02
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН