Questions tagged [login-script]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
3 answers
2k views

Is it possible to stop computers which aren't Bitlocker encrypted logging in?

Is it possible to somehow (startup script?) stop any unencrypted computers from being able to connect to the domain? Environment: Windows Active directory, 1000-ish computers, mostly bitlocker ...
Digital Lightcraft's user avatar
5 votes
2 answers
3k views

`ssh foo "<command/>"` not loading remote aliases?

summary: Why does this fail $ ssh foo 'R --version | head -n 1' bash: R: command not found but this succeeds $ ssh foo 'grep -nHe 'bashrc' ~/.bash_profile' /home/me/.bash_profile:3:# source the ...
TomRoche's user avatar
  • 243
4 votes
1 answer
2k views

How can I start a program from a login batch script if the Command Prompt is disabled?

Our Terminal Servers has two Group Policies in place: one that includes disabling the command prompt, and another that runs a batch script to startup a program upon login. But the startup program ...
Rachel's user avatar
  • 640
4 votes
1 answer
437 views

SSH connection refused/error message

I have a systems which has multiple users but only few selected users are allowed to login to the system at a given time through SSH (or otherwise). I am using "passwd -l/-u" command to lock and ...
CodeWithPride's user avatar
4 votes
2 answers
1k views

Applying Group Policy to the Security Groups

I'm using VBScript in my logon script to map network drives.. I know that a group policy should applied to individual user accounts and computer accounts by linking (GPOs) to Active Directory ...
Bandar's user avatar
  • 41
4 votes
1 answer
118 views

Linux server kiosk [closed]

I want to build a dedicated machine I can use for testing candidates in our company. The machine should run Linux with SSH server listening for connections. I would like to send each candidate a user ...
stdcall's user avatar
  • 187
4 votes
2 answers
503 views

OSX Server - How to set environment variable on network user login

I have a group of users on my server, "Developers", and I would like an environment variable to be set for them whenever they login. More specifically, when anyone in this group logs in, I would ...
tmkly3's user avatar
  • 141
3 votes
1 answer
11k views

How can I use powershell to check if a mapped drive is open / connected?

I am writing a login script which unmaps and remaps some drives. The powershell calls a small batch file for the actual unmapping, as Powershell seems a bit flaky at reliably mapping the drives. The ...
Ben's user avatar
  • 1,137
3 votes
2 answers
780 views

Why is my .bashrc script executing out of order / not waiting for steps to complete?

I have the need for teachers to fill in electronic registers in remote areas, and they need to be able to do it fast and with the least fuss necessary. To accomplish this I have set up netbooks with a ...
James Howell's user avatar
3 votes
1 answer
368 views

Dovecot 2.0.7 postlogin script not getting plain_pass

We are currently setting up a postlogin script to pass credentials to a script for syncing mail to another server cluster in preparation for a migration. The server we are setting this up currently ...
beautivile's user avatar
2 votes
3 answers
2k views

Disable Windows login script per network location

Scoured the internet for at least 10 minutes. Have a bunch of laptops that are logging in when outside the "work" network. I have been getting the question: I have an SSD and tons of ram why does ...
mikedopp's user avatar
  • 329
2 votes
3 answers
13k views

How to execute a batch file each time a user logins?

I've written a batch script which copies of some files in the CommonAppData folder (C:\ProgramData) to the logged in User's Local AppData. What I would like to do is to execute this script for every ...
user841923's user avatar
2 votes
3 answers
1k views

Active Directory set up with replication -- need a way to control login authentication host

I have two Active Directory servers set up with replication, ad2 and ad4. ad4 has a higher latency than ad2 as it is offsite. All clients are supposed to log in and authenticate to the ad2 server. The ...
user avatar
2 votes
1 answer
197 views

SYNC folder with server in drive D

i am using windows 2003 server and windows 7 as client. i have one folder in drive D i want to SYNC that folder with server. how can i write login script for that? Thanks
air's user avatar
  • 273
2 votes
2 answers
4k views

How do you run "source" when starting a shell?

In order to use rvm (https://rvm.beginrescueend.com/), I need to run source ~/.bash_profile each time when I start a new shell. How do I automatically do this when I start my computer, rather than ...
larry's user avatar
  • 4,107
2 votes
2 answers
2k views

Do GPO login scripts run in remote desktop / terminal services sessions?

I've created a login script that fires up a quick data collection task for our network inventory software. However, we have a couple 2008 servers that run Terminal Services, and a high number of users ...
user avatar
2 votes
1 answer
8k views

GPO for PS1 logon script does not work without local admin rights for user

I have a PowerShell .PS1 script that I am trying to get to apply via a logon script with Group Policy. Here is the .PS1 script (very simple, just adds the user to RD Users group): net localgroup "...
KidACrimson's user avatar
2 votes
1 answer
6k views

How to hide running logon scripts from users (.vbs) without using a wrapper script?

I have a GPO (configured with loopback replace) that runs a logon script (.vbs) and linked it to an OU containing a W2012R2 RDS host. I have made these (question related) changes to the policy: ...
Matthias Güntert's user avatar
2 votes
1 answer
7k views

Outlook 2010 - Login Scripts - auto configure non exchange account

I am looking for a way to configure MS Outlook 2010 with a login Script if possible so that when a new user logs into there PC it automatically sets outlook up so that there email account is there for ...
Kristiaan's user avatar
  • 442
1 vote
1 answer
176 views

GPO or Login script

i am unsure of what i should use. i have a site with about 40 users and 6 different departments which need access to different areas and differnt mapped drives. What is better for me to create a ...
ben950's user avatar
  • 319
1 vote
2 answers
16k views

Login scripts in SBS 2011

Where can I add and configure a login script for each user in SBS 2011? For example, I to map a drive for a user-specific folder. I do not want to use folder redirection.
John's user avatar
  • 664
1 vote
1 answer
224 views

How do I extract the Drive letter from the result of EnumNetworkDrives

I'm using EnumNetworkDrives to list out all the drives on a machine. I'd like to determine which object in the collection is drive "X" What object is returned in EnumNetworkDrives that has a ...
makerofthings7's user avatar
1 vote
2 answers
3k views

Login script doesn't run when logging in through "remote desktop"

I have a Windows 2008 machine (not in a domain) and a user with a "login script" under the profile tab in the user properties to run a batch file. Supposedly that file must be run when the user logs ...
shinji14's user avatar
  • 123
1 vote
3 answers
4k views

Setting Default Printers in Login Script?

I've got a login script setup, that removes all old printers, and then adds the current set of network printers. CODE Set WSHPrinters = WSHNetwork.EnumPrinterConnections For LOOP_COUNTER = 0 To ...
spelk's user avatar
  • 87
1 vote
1 answer
614 views

Mapping Drives via Group Policy login script (2008 domain with Windows 7 & 8 clients)

I'm having trouble getting drives mapped for my domain. I few months ago we were using Group Policy Preferences to map drives, but for some reason it stopped working - so I created a few login scripts ...
Arindrew's user avatar
1 vote
2 answers
404 views

Link Documents and Desktop Directories on Mac OS X

I'm working on our login script for our OS X 10.5 deployment and I want to redirect the user's Documents and Desktop directories to their network home directory. In the login script I have a line ...
Scott Keck-Warren's user avatar
1 vote
1 answer
701 views

SSH config: How to automatically execute an interactive script locally before connection?

Background: I have a local script that needs to execute locally as a pre-requisite to making an ssh connection. The script is already working, but currently users need to run the script, then make an ...
Rino Bino's user avatar
  • 603
1 vote
1 answer
450 views

Linux equivalent of Unix who -m command, to show original user ID before su?

I'm trying to find a Linux equivalent of running who -m in Unix. In Unix, who -m gives the first user ID you used to log in, before starting any new shell sessions through su, etc. The -m switch to ...
narwahl's user avatar
  • 33
1 vote
0 answers
334 views

Run scheduled task on wireless connection

I'm trying to set up a completely wireless office, with mostly Windows 7 and a few Windows 8 clients, and one problem I've run into is login scripts. The security guys don't want to allow machine ...
DarkMoon's user avatar
  • 1,059
1 vote
1 answer
217 views

Netware - display user groups

Is there command in netware that will allow me to display all groups that user belongs to in login script?
jjczopek's user avatar
  • 125
1 vote
1 answer
7k views

Windows Map to user home directory fails with %username% variable

I have a user johndoe with the following drive mapping in his login script (.bat file). net use y: \\myserver\users$\johndoe However, when I try to use a more generic mapping using the username ...
zen's user avatar
  • 211
0 votes
3 answers
2k views

Automated/scripted conversion of Normal.dotm from Word 2010 format to 2013

I want to migrate many users from Office 2010 to Office 2013. As we are working in RDP sessions, the migration per user consists simply in changing the server name in their local .rdp file. However, ...
Hagen von Eitzen's user avatar
0 votes
2 answers
435 views

Can a user log into a Windows domain on a Win7 workstation before the network drivers come up?

I have a user who uses a pretty high end 3D package called Virtual Gibbs. Just last month I built him a new super fast computer with an SATA 6G/s SSD. For some odd reason when the user first logs on ...
Albion's user avatar
  • 465
0 votes
1 answer
586 views

Login Script Overview

Working on a project for an experiential learning class and well... I got asked to take care of the logon script, we're not ready to fully implement it yet, and I myself am a novice with scripts, but ...
zat's user avatar
  • 1
0 votes
1 answer
1k views

Set Outlook stationery via Powershell

I want to set Outlook stationery to a particular template on all the machines on my network using Powershell (through a login script). Can someone point me in the right direction? Thanks, Ben
Ben's user avatar
  • 1,137
0 votes
3 answers
2k views

Drive mappings from login script do not work

I have about Windows 2008 R2 Remote Desktop Servers in farm. To the best of my knowledge they are all have the same update status and they are also goverened by the same GPO. Among others, users ...
Hagen von Eitzen's user avatar
0 votes
1 answer
2k views

Login/Startup Scripts Not working

My test network setup is as follows. A Windows 2008 R2 Server acting as a DC (AD, DNS, DHCP) it is on its own vlan (10.20.99.0/24). I then Have two XP test computers each on there own vlan (10.20.98....
Alex L's user avatar
  • 125
0 votes
2 answers
364 views

What are people using as Login scripts in large enterprises?

We have recently been tasked with looking after the user login side of things in our enterprise (Windows clients in Active Directory). We have a system at the moment that uses a VBScript login/loggof ...
0 votes
1 answer
137 views

Check the php Session when a user accesses a certain subfolder

I have a login script using a php session under mydomain.com/login.php . Whenever a user accesses something inside the subfolder mydomain.com/internal/ I would like to automatically check whether he ...
Tim's user avatar
  • 101
0 votes
0 answers
4k views

How to auto-unlock a Windows Server programmatically, after hours?

We have an air-gapped Windows Server, not connected to the public or private network. There are a number of routine tasks that must be performed on this machine after hours. These have been automated ...
JonathanDavidArndt's user avatar
0 votes
0 answers
164 views

Display server info to user logging in

Previous to virtualizing our servers and using domain logins we had a practice of creating a wallpaper with the server name and services running on the server so if any technician logged in they ...
Brian's user avatar
  • 341
0 votes
1 answer
318 views

set login script flag for vbs 'All Users' script so it doesn't run again

We have a vbs All Users script that creates a bunch of printers (approximately 25 printers) when a user logs on. It takes a minute or two to run so we don't want it to run again if not necessary. How ...
mindmischief's user avatar
0 votes
1 answer
755 views

List mapped zombie drives in powershell

I'm writing a little powershell script for some basic logs that have to be generated. Right now I'm stuck with logging mapped network drives: $colDrives = Get-WmiObject Win32_MappedLogicalDisk -...
Alessandro's user avatar
0 votes
2 answers
291 views

Logging in to X-Windows with advanced .profile

I have just upgraded one of my systems to Precise Pangolin (Ubuntu 12.04). (A long-overdue upgrade from Lucid. Youch!) When I try to login to X Windows, I get a ~/.xsession-errors file with these ...
Dennis 's user avatar
  • 188
0 votes
1 answer
195 views

Login script not running as the NIC takes too long to initialise

We're just about to roll out a bunch of Lenovo T431s's but have an odd problem with the NICs on them. Basically (from reboot) they are taking too long to initialise (i.e. the blue "swirl" on the ...
Ben's user avatar
  • 1,137
0 votes
0 answers
1k views

Group Policy Email Signature Script

I have a VBS script that builds an Outlook Email signature and saves it to the user's machine. I want this to be called each time the user logs in, using group policy, but so far I've had no luck. ...
Alexander Holsgrove's user avatar
0 votes
2 answers
61 views

Shares server user with startup scripts specific for each developer (using SSH)

On LAMP for web apps in PHP we use common ownership: all files all owned by user webmaster and group www-data. User webmaster has full access, www-data (used by apache) mostly read-only. Multiple ...
Stepan's user avatar
  • 2,159
0 votes
1 answer
565 views

Automatically log into SIP phone when user logs into Windows

We run an asterisk-based PBX, with FreePBX front end, configured in 'device and user mode' to support hot desking users. That is, a user arrives and sits at any desk, keys *11 into the phone (Cisco ...
Tim Long's user avatar
  • 1,738
0 votes
1 answer
133 views

Does Shell command from Login script affect scripts synchronously setting

I have had to alter one of our login script to check to see if windows is 64 or 32 bit, then shell out to another command based on this. Does shelling out from the login script affect the run scripts ...
beakersoft's user avatar
0 votes
1 answer
1k views

Script to copy file from server and install software

Here is what I want to do - I would like to install a software on every PC in my domain. I would like it fully automated. I am sure this can be done either using a batch file or a vbscript. Here is ...
molecule's user avatar