Making a list of servers

Hey guys, I was hoping you all would give me you opinion on this. I need to make a list of server that are currently up (For my game).
I can kind of get it to work by adding the server to the list when I start the program, And I can remove it from the list when the program closes, using LDGraphicsWindow.ExitOnClose But If someone uses task manager and closes the program that way, the
server will still be on the list.
I don't know what do do :( 
Thanks for the help!!
It is written: "'As surely as I live,' says the Lord, 'every knee will bow before me; every tongue will acknowledge God.'" Romans 14:11

Not sure i understood right in feverish delir, without knowing your program. But sometimes you can't always get what u want and can't have it all together.
eg. When i kill my Notepad2, the program can't react anymore (it can' see it coming) and can't save the settings (on closing) anymore.
There are programs that can watch the state of a program and ev. restart it again, or there are ways to run a program as a service.
A rather bad idea would be to disable taskmgr (via registry value 'DisableTaskMgr' on program start and perhaps (?) enable it again when the program closes (if all runs fine). But what, if the program crashes, or is killed from the console? Taskmgr stays
disabled.
Another exotic idea would be to attach your program as an ADS (alternate data stream) to any other program or file and start it from there. Then it would not be visible in taskmgr anymore.
eg. in Cmd:
1.  type yourProg.exe > anyFile.ext:yourProg.exe   (attach yourProg to anyFile)
2. start anyFile.ext:yourProg.exe   (start yourProg.exe from anyFile.ext hidden)

Similar Messages

  • Making task list field mandatory in creation of maintenance plan?

    Dear All,
    I need your help in configuration of Making task list field mandatory in creation of maintenance plan. I checked with sceen variant config but that also not giving me any option to make the field mandatory.
    Is there any note or user exit for it?
    Regards,
    Kaushal Rai

    Dear,
    Pls check the exit IPRM0004:Maintenance plan / item: Customer check for time "SAVE".
    Regards
    Sunil

  • Added server not listed in Server pool (not even on the list of servers)

    Hello VM Gurus,
    I'm playing with Oracle VM and I've encountered problem I can not solve of find existing solution.
    I'm playing with Oracle VM version 2.1.5.
    I have 3 psychical machines (let say A,B,C). On every machine I have installed WMWare workstation. I've created all together 5 VMWare virtual machines.
    On Physical machine A I have 1 VMWare virtual machine named A1. This is used as Virtual Machine Server.
    On Physical machine B I have 2 VMWare virtual machine named B1 and B2. B1 is used as Oracle VM Manager. B2 is used as Virtual Machine Server (also Server Pool Master and Utility Server)
    On Physical machine C I have 2 VMWare virtual machine named C1 and C2. Both are used as Virtual Machine Serves.
    1. I've Created Pool of servers (HA set up) and first added server B2.
    2. After that I've added to pool A1 without any problems
    3. After that I've added to pool C1 without any problems.
    3. After that I've tried to add to pool C2. Process (wizard "Add server") finishes without any problems. But server does not appear on the list of servers in pool. It does not exist On a list of servers neither. If I try to add server again I got error OVS-2005 saying that this server is part of another Pool.
    If I stop agent on C2 , delete folder /etc/ovs-agent/db and start agent, I can again add server, but results are same (it does not appear on list of servers. Another try to add server results in OVS-2005 error).
    If done also this process:
    1. I've stopped agent on C2, deleted folder /etc/ovs-agent/db and starte agent
    2. I've removed C1 from pool
    3. I've added C2 to pool without any problems
    4. I've tried to add c1 to Pool. Same problems as in the past with C2 (not appearing on the list of servers).
    I went though agent logs, VM manager logs. I ca not spot any problems. I've connected to database with SQL plus and there was no evidence of failed server there (so data is really not written to repository).
    I run out of ideas. What could be wrong? where to look whyt is problem. How to diagnose problem. I believe that Oracle VM somehow treat this two VMWare servers as one, but I can not prove this.
    Somebody else had this problem? Any hint what to diagnose further? I understand my configuration is a bit stupid, but I'm trying to get familiar with Oracle VM.
    Any hint will be appreciated.
    Regards
    Darko

    user465397 wrote:
    I have 3 psychical machines (let say A,B,C). On every machine I have installed WMWare workstation. I've created all together 5 VMWare virtual machines.This is a really bad idea, btw -- if you have three physical machines, you should install Oracle VM directly on each machine. Or use one machine as the NFS server and Oracle VM Manager and the other two as Oracle VM Servers. Trying to run a Type 1 Hypervisor inside a Type 2 hypervisor is fraught with peril. I'm surprised you actually got this far, to be honest. :)

  • Work around / fix for making a list of drop down boxes

    Dear experts,
    When lists are created, its cells act like top-level views. Because of this, everything attempting to go past the border of the list item is clipped. This is a problem when making a list of drop down boxes. Is there a known work around for this or maybe a fix?
    Regards,
    Olivier

    thank you saish, moving 'the artists are' helps visually, as for the fix, i really needed to store it in an arrayList, resultSets aren't very happy about being manipulated!
    here's the fix:
    writer.println("<select name=\"userList\" size=\"1\">");
    ArrayList a = new ArrayList();
    ResultSet r=null;
    // this is just my way of accessing the database and the correct method with the artist names in it
    r = factory.getCustomersDAO().get_Artist_Names_Only();
    while(r.next())
    // retrieve artist names as String variables
    String artist = r.getString("artist_name");
    // add to ArrayList
    a.add(artist);
    for(int i=0; i<a.size(); i++)
    Object art = a.get(i);
    art = (String)art;
    writer.println("<OPTION VALUE=\"" +art+ "\">" art "</OPTION>");
    writer.println("<tr><td colspan = \"2\"><h2>Enter Artist Name to be booked: </h2></tr></td>");
    writer.println("</SELECT></TD></TR>");
    thanks again, i've got another problem now that i'm just about to post about, how to register when one particular cell in a html table has had its link clicked!
    jenxx

  • List all servers with OS and service pack

    Is there an easy way using any script or software to list all servers joined to your domain including operating system (i.e. server 2008) and service pack level, without having to check each manually?

    Hi Cf090,
    The limit is used to Specify the number of objects to return that matches the criteria that you specify. If you specify a value of
    0 for <NumberOfObjects>, this parameter returns all matching objects. If you do not specify this parameter,
    dsquery displays the first 100 results by default.
    For more detailed information to use dsquery, please refer to this article:
    http://technet.microsoft.com/en-us/library/cc754232.aspx
    If you have any other questions, please feel free to let me know.
    Best Regards,
    Anna

  • Hi, recently I have been making a list of songs and now that I have all of the songs that I want my iTunes is telling me to answer security questions that I forget the answers to, is it possible to get rid if this?

    Hi, recently I have been making a list of songs and now that I have all of the songs that I want my iTunes is telling me to answer security questions that I forget the answers to, is it possible to get rid if this?

    Damian_2087 wrote:
    ... I forget the answers... is it possible to get rid if this?
    No.
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Making A List of Files or Folders

    Is there anyway of making a list of the files or folders I have if I want to send someone a list of files in a folder - or folders for a particular topic without having to actually send them the files.
    I know I can do a screen shot but I was wondering if there was any shortcut in the system that would create a list.
    Thanks.

    You could just use Terminal and use the command line
    function "ls".  For instance, if you want to list the contents
    of a directory called foo in your home directory type in
    ls ~/foo
    You will get a list of all the files in that directory.  To see
    all the listing options available type
    man ls
    then use the arrow key to scrol through all the display options.
    Then press q to return to the command prompt.
    You can then just select that are with the listing with your
    mouse, copy, and then paste the info into your document.

  • How to log off a single AD user from a list of servers

    I have a user account I need to logoff from all servers in a list.  For example domain\user2 needs to be logged off all servers in a list.  Here is what I have so far:
    foreach ($_ in get-content C:/servers.txt)
    {(gwmi win32_operatingsystem -ComputerName$_).Win32Shutdown(4)}
    The problem is all this does is log off the first user in the session list when you are looking at task manager.  How could
    I log off just a specific user?

    This thread on stackoverflow may be useful to you if the user is connected to an RD session on your servers: Powershell Log Off Remote Session 
    As a starting point:
    $server = 'MyServer'
    $username = "domain\usertologoff"
    $session = ((quser /server:$server | ? { $_ -match $username }) -split ' +')[2]
    logoff $session /server:$server
    (the script listed logs the current user off, I changed it to all you to enter the username)
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Please assist with modifying this script to read in a list of servers and output results to excel

    Hello,
    I have an excellent script written by Brian Wilhite to gather the last logged in user using Powershell.
    http://gallery.technet.microsoft.com/scriptcenter/Get-LastLogon-Determining-283f98ae/view/Discussions#content
    My Powershell Fu is stumbling to modify this script to the following requirements:
    Currently the script must be loaded first into Powershell, then it can be executed.  I would rather edit the script in my Powershell ISE, add the .txt file to the script itself that gives a list of the servers I need to scan.  Then when I
    press Run Script in my ISE it executes.
    I would also like to output the results of the file to excel (.xls or .csv will do).  Currently the results look as follows:
    Computer : SVR01
    User : WILHITE\BRIAN
    SID : S-1-5-21-012345678-0123456789-012345678-012345
    Time : 9/20/2012 1:07:58 PM
    CurrentlyLoggedOn : False
    I would prefer it shows up like so:
    Computer User SID Time Currently LoggedOn
    SVR01 WILHITE\BRIAN S-1xxx 9/20/2012 1:07:58 PM FalseSRV02 WILHITE\BRIAN S-2xxx 9/26/2014 10:00:00 AM True
    Any help you can provide would be greatly appreciated.  I'll add the full script to the end of this post.
    Thank you.
    Function Get-LastLogon
    <#
    .SYNOPSIS
    This function will list the last user logged on or logged in.
    .DESCRIPTION
    This function will list the last user logged on or logged in. It will detect if the user is currently logged on
    via WMI or the Registry, depending on what version of Windows is running on the target. There is some "guess" work
    to determine what Domain the user truly belongs to if run against Vista NON SP1 and below, since the function
    is using the profile name initially to detect the user name. It then compares the profile name and the Security
    Entries (ACE-SDDL) to see if they are equal to determine Domain and if the profile is loaded via the Registry.
    .PARAMETER ComputerName
    A single Computer or an array of computer names. The default is localhost ($env:COMPUTERNAME).
    .PARAMETER FilterSID
    Filters a single SID from the results. For use if there is a service account commonly used.
    .PARAMETER WQLFilter
    Default WQLFilter defined for the Win32_UserProfile query, it is best to leave this alone, unless you know what
    you are doing.
    Default Value = "NOT SID = 'S-1-5-18' AND NOT SID = 'S-1-5-19' AND NOT SID = 'S-1-5-20'"
    .EXAMPLE
    $Servers = Get-Content "C:\ServerList.txt"
    Get-LastLogon -ComputerName $Servers
    This example will return the last logon information from all the servers in the C:\ServerList.txt file.
    Computer : SVR01
    User : WILHITE\BRIAN
    SID : S-1-5-21-012345678-0123456789-012345678-012345
    Time : 9/20/2012 1:07:58 PM
    CurrentlyLoggedOn : False
    Computer : SVR02
    User : WILIHTE\BRIAN
    SID : S-1-5-21-012345678-0123456789-012345678-012345
    Time : 9/20/2012 12:46:48 PM
    CurrentlyLoggedOn : True
    .EXAMPLE
    Get-LastLogon -ComputerName svr01, svr02 -FilterSID S-1-5-21-012345678-0123456789-012345678-012345
    This example will return the last logon information from all the servers in the C:\ServerList.txt file.
    Computer : SVR01
    User : WILHITE\ADMIN
    SID : S-1-5-21-012345678-0123456789-012345678-543210
    Time : 9/20/2012 1:07:58 PM
    CurrentlyLoggedOn : False
    Computer : SVR02
    User : WILIHTE\ADMIN
    SID : S-1-5-21-012345678-0123456789-012345678-543210
    Time : 9/20/2012 12:46:48 PM
    CurrentlyLoggedOn : True
    .LINK
    http://msdn.microsoft.com/en-us/library/windows/desktop/ee886409(v=vs.85).aspx
    http://msdn.microsoft.com/en-us/library/system.security.principal.securityidentifier.aspx
    .NOTES
    Author: Brian C. Wilhite
    Email: [email protected]
    Date: "09/20/2012"
    Updates: Added FilterSID Parameter
    Cleaned Up Code, defined fewer variables when creating PSObjects
    ToDo: Clean up the UserSID Translation, to continue even if the SID is local
    #>
    [CmdletBinding()]
    param(
    [Parameter(Position=0,ValueFromPipeline=$true)]
    [Alias("CN","Computer")]
    [String[]]$ComputerName="$env:COMPUTERNAME",
    [String]$FilterSID,
    [String]$WQLFilter="NOT SID = 'S-1-5-18' AND NOT SID = 'S-1-5-19' AND NOT SID = 'S-1-5-20'"
    Begin
    #Adjusting ErrorActionPreference to stop on all errors
    $TempErrAct = $ErrorActionPreference
    $ErrorActionPreference = "Stop"
    #Exclude Local System, Local Service & Network Service
    }#End Begin Script Block
    Process
    Foreach ($Computer in $ComputerName)
    $Computer = $Computer.ToUpper().Trim()
    Try
    #Querying Windows version to determine how to proceed.
    $Win32OS = Get-WmiObject -Class Win32_OperatingSystem -ComputerName $Computer
    $Build = $Win32OS.BuildNumber
    #Win32_UserProfile exist on Windows Vista and above
    If ($Build -ge 6001)
    If ($FilterSID)
    $WQLFilter = $WQLFilter + " AND NOT SID = `'$FilterSID`'"
    }#End If ($FilterSID)
    $Win32User = Get-WmiObject -Class Win32_UserProfile -Filter $WQLFilter -ComputerName $Computer
    $LastUser = $Win32User | Sort-Object -Property LastUseTime -Descending | Select-Object -First 1
    $Loaded = $LastUser.Loaded
    $Script:Time = ([WMI]'').ConvertToDateTime($LastUser.LastUseTime)
    #Convert SID to Account for friendly display
    $Script:UserSID = New-Object System.Security.Principal.SecurityIdentifier($LastUser.SID)
    $User = $Script:UserSID.Translate([System.Security.Principal.NTAccount])
    }#End If ($Build -ge 6001)
    If ($Build -le 6000)
    If ($Build -eq 2195)
    $SysDrv = $Win32OS.SystemDirectory.ToCharArray()[0] + ":"
    }#End If ($Build -eq 2195)
    Else
    $SysDrv = $Win32OS.SystemDrive
    }#End Else
    $SysDrv = $SysDrv.Replace(":","$")
    $Script:ProfLoc = "\\$Computer\$SysDrv\Documents and Settings"
    $Profiles = Get-ChildItem -Path $Script:ProfLoc
    $Script:NTUserDatLog = $Profiles | ForEach-Object -Process {$_.GetFiles("ntuser.dat.LOG")}
    #Function to grab last profile data, used for allowing -FilterSID to function properly.
    function GetLastProfData ($InstanceNumber)
    $Script:LastProf = ($Script:NTUserDatLog | Sort-Object -Property LastWriteTime -Descending)[$InstanceNumber]
    $Script:UserName = $Script:LastProf.DirectoryName.Replace("$Script:ProfLoc","").Trim("\").ToUpper()
    $Script:Time = $Script:LastProf.LastAccessTime
    #Getting the SID of the user from the file ACE to compare
    $Script:Sddl = $Script:LastProf.GetAccessControl().Sddl
    $Script:Sddl = $Script:Sddl.split("(") | Select-String -Pattern "[0-9]\)$" | Select-Object -First 1
    #Formatting SID, assuming the 6th entry will be the users SID.
    $Script:Sddl = $Script:Sddl.ToString().Split(";")[5].Trim(")")
    #Convert Account to SID to detect if profile is loaded via the remote registry
    $Script:TranSID = New-Object System.Security.Principal.NTAccount($Script:UserName)
    $Script:UserSID = $Script:TranSID.Translate([System.Security.Principal.SecurityIdentifier])
    }#End function GetLastProfData
    GetLastProfData -InstanceNumber 0
    #If the FilterSID equals the UserSID, rerun GetLastProfData and select the next instance
    If ($Script:UserSID -eq $FilterSID)
    GetLastProfData -InstanceNumber 1
    }#End If ($Script:UserSID -eq $FilterSID)
    #If the detected SID via Sddl matches the UserSID, then connect to the registry to detect currently loggedon.
    If ($Script:Sddl -eq $Script:UserSID)
    $Reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]"Users",$Computer)
    $Loaded = $Reg.GetSubKeyNames() -contains $Script:UserSID.Value
    #Convert SID to Account for friendly display
    $Script:UserSID = New-Object System.Security.Principal.SecurityIdentifier($Script:UserSID)
    $User = $Script:UserSID.Translate([System.Security.Principal.NTAccount])
    }#End If ($Script:Sddl -eq $Script:UserSID)
    Else
    $User = $Script:UserName
    $Loaded = "Unknown"
    }#End Else
    }#End If ($Build -le 6000)
    #Creating Custom PSObject For Output
    New-Object -TypeName PSObject -Property @{
    Computer=$Computer
    User=$User
    SID=$Script:UserSID
    Time=$Script:Time
    CurrentlyLoggedOn=$Loaded
    } | Select-Object Computer, User, SID, Time, CurrentlyLoggedOn
    }#End Try
    Catch
    If ($_.Exception.Message -Like "*Some or all identity references could not be translated*")
    Write-Warning "Unable to Translate $Script:UserSID, try filtering the SID `nby using the -FilterSID parameter."
    Write-Warning "It may be that $Script:UserSID is local to $Computer, Unable to translate remote SID"
    Else
    Write-Warning $_
    }#End Catch
    }#End Foreach ($Computer in $ComputerName)
    }#End Process
    End
    #Resetting ErrorActionPref
    $ErrorActionPreference = $TempErrAct
    }#End End
    }# End Function Get-LastLogon

     This should work:
    Get-LastLogon -Computername (Get-content .\Servers.txt) | Export-CSV .\Output.csv -NoTypeInformation
    I just tested it on my test domain and it did the trick.

  • How do I add to the list of servers in 'Date & Time' System Preferences?

    Earlier versions of the Mac OS (9 and below, I believe) allowed a user to add to the list of time servers in what was then the Date and Time Control Panel. Now, under OS X (Tiger), I am able to select from the three servers that Apple provides, but I would like to add my own. I am able to paste a new one into the field of the 'Date & Time' preference pane, but it will not be permanently added to the list. There must be a way to do this, no?
    Thanks!

    it will not be permanently added to the list.
    It should stay there as long as you don't change it.

  • Help making a list of missing/not working features

    Since Adobe isn't talking why not help me make a list of features that aren't in Premiere anymore as well as one's promised for premiere CS4 but aren't there until it's updated.
    No AAF
    No single click save stills - AECS4 still has this
    No more stream hinting in quicktime
    HDV and AVCHD audio synch problems
    Track Matte effect doesn't work
    Media browser doesn't preview 24p correctly,
    XML to Final Cut doesn't work
    No OMF
    No edit with Audition,
    No 3rd party codecs - Cineform, Quicktime dvcproHD, Blackmagic, Raylight
    Have to 'Interpret Footage' for 24p and 24pa
    These just off the top of my head and not bug related issues listed here http://premierepro.wikia.com/wiki/Known_Issues

    Here's another one from November 13th.
    'Good morning one & all,
    We've been cranking out code with the RED team, lining up for the same schedule.
    Next week we'll ship a full native workflow for RED in Premiere Pro CS4, After Effects CS4 and even Encore CS4 (the RED to Blu workflow).
    We've come a long way since the IBC demos --- more performance, more stability, more options, and tuning it to CS4 which is architected for 64 bit systems so that you can stuff it full of memory and get that smooth as butter experience.
    Import your R3D files, change resolution on the fly, pop into full resolution for some detail work, drop all the way down to 1/16th for fast cuts on a laptop --- it's all there.
    We're right up to 2K at full performance with the latest drop.
    Oh, and did I mention that we're working the RED gang on exposing more control on the realtime de-bayering ? ... and of course with Assimilate on making it a full, clean, raw end to end workflow ?
    Expect the importer to be posted with RED and linked from Adobe before Thanksgiving. Nov 20th is looking like the date (not that dates ever change).
    Many thanks to our beta-testers ... you've been awesome turning things around and helping us shape the future.
    It's cool.
    It's Christmas come early.
    Enjoy.'
    Simon & the Merry Adobe Gang
    Keeping you close to the lens

  • OD users missing from user lists on servers bound to open directory

    Hi,
    I've got an OD master set up on a 10.4 server. Two other servers (one 10.4 and one 10.5) are bound to the first for directory services. If I open Workgroup Manager on the OD master, I see a complete list of users. If I open a user/group "drawer" on either of the other servers, to add users to SACLs or share point permissions, the lists are short numerous users (4 out of 12 starting with the letter "A" alone).
    Has anyone ever seen this? I removed and rebound one of the servers, but it still had only a partial list of users. A have compared parameters for users who show up with those who don't, but can see no difference?
    Thanks,
    Sue

    This may be a stupid question but have you run sudo chown on the user's home directory after creating it?
    I had the same problem and my solution is posted here: http://discussions.apple.com/thread.jspa?threadID=1290158&tstart=0
    Let me know if that works. If not, we'll work on it together.

  • Is there a key command for "none" when making a list but I'm finished

    When I am making a numbered list, Pages automatically adds numbers to the next line when I hit "return."
    for example
    1) sdjfskdfdsjdk
    2) ahfghfdghfdhnvbcnbncbv
    3) tereteewtrterwtret
    4)
    In this case, there are only three elements, but Pages goes ahead and thinks I'm going to keep going with the list.
    Is there a key command I can map that will "de-number" the fourth line so I can keep typing without having to go up to the task bar and select "none"?

    Pages User Guide which is also for you claims :
    As pressing return twice doesn't behave well here, I decided to use the second sceme return + delete which works well every time.
    Yvan KOENIG (VALLAURIS, France) jeudi 6 octobre 2011 11:42:45
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Script to list all servers in my domain

    i need to list all the windows servers in my organization so i was wondering if anyone knew of or had a script that could do this and export it to a csv file.

    You don't need a script.  You just need to list servers from the computer browse list.  This can be done with
    Net View or the Browstat commands. 
    browstat vw 1 | find /i ",SS" will list just the servers.  With the browstat output there are several items you can easily search for, Version, DFS, SQL, etc.
    \\Servername   NT   05.02 (W,S,SQL,NT,SS,BBR,DFS)
    Use quick edit/Mark and copy in the command prompt to select and copy only the server names out as needed.
    Using the browse list is actually a better method because it shows you only active servers.  While obtaining a list from Active Directory will have old server accounts listed.
    http://support.microsoft.com/kb/818092

  • Making A List Of Files In A Folder

    Is there a way to make a list of all the files and folders within a root folder? I have thousands of pictures of record label scans in folders by artist name. I'd like to compile a list of some sort of all the folder names and the file names. I tried doing a snapshot of the screen and/or window but it only shows what you see on the monitor not what you would normally need to scroll down to see, which is not many at all. Can anyone please help?? Thanks.

    Hi sjaakad,
    I second eww's thank-you for that tip! I saw eww's reply mentioning TextWrangler and having a little free time for tinkering I downloaded it and tried your suggestion:
    The simplest way is to drag a folder symbol from the Finder into a new BBEdit window
    That's neat stuff! I'm sure I'll find uses for this in the future....thanks again,
    littleshoulders

Maybe you are looking for