Questions tagged [login-script]
The login-script tag has no usage guidance.
54
questions
1
vote
1
answer
416
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 ...
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 ...
0
votes
1
answer
124
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 ...
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 ...
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 ...
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 ...
2
votes
1
answer
7k
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 "...
-5
votes
1
answer
4k
views
How to make custom router login page? [closed]
I am trying to make a custom router login page. I want the user to ridirected to the login page when he/she connects to the wifi network. How can i make such a login /registration system?
1
vote
1
answer
404
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 ...
4
votes
1
answer
105
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 ...
0
votes
0
answers
147
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 ...
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, ...
-1
votes
1
answer
227
views
Clients looking for GPO login script on my personal computer instead of doing it on the DC?
This is kinda weird. I have the Group Policy Management console installed on my Windows 7 workstation and I configure policies from there. Sometimes I do it directly on a domain controller, but most ...
1
vote
1
answer
601
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 ...
0
votes
1
answer
312
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 ...
4
votes
1
answer
424
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 ...
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:
...
1
vote
0
answers
320
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 ...
3
votes
1
answer
352
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 ...
0
votes
1
answer
732
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 -...
0
votes
2
answers
276
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 ...
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 ...
-1
votes
2
answers
2k
views
Run a script on ssh login
I have a development env. with 4 users, I want to be able to log their time logged in since they are contractor working from home.
I have NO idea how to do it, my sys admin left me this weekend and I ...
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 ...
1
vote
1
answer
171
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 ...
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.
...
4
votes
2
answers
501
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 ...
0
votes
2
answers
432
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 ...
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 ...
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 ...
-1
votes
1
answer
1k
views
linux + print message on the screen after login to linux machine
I have linux machine red-hat 5.1
I want to write ksh/bash script that perform the following
Each time that someone login to the linux machine
then he will get the following message on the screen - ...
1
vote
1
answer
218
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 ...
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.
0
votes
2
answers
59
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 ...
0
votes
1
answer
550
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 ...
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....
2
votes
3
answers
12k
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 ...
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 ...
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 ...
1
vote
1
answer
6k
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 ...
1
vote
1
answer
212
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?
3
votes
2
answers
772
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 ...
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 ...
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 ...
0
votes
1
answer
132
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 ...
0
votes
1
answer
580
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 ...
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 ...
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 ...
1
vote
2
answers
402
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 ...
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 ...