After SysPrep Windows Logs Users In With Temporary Profile

I have created a Windows 8.1 Pro image which was created by installing from the DVD. On first login I put windows into audit mode and installed all software and customised. I then ran sysprep with an unattend file with "copy profile" set to true.
Once the image is loaded onto a new PC it is joined to our domain and if I login as a Domain Admin things are fine, but if I login as a Domain User it logs the user in with a temporary profile which disappears at log off. The fact that Domain Admins
can login successfully suggests it is permissions but I am not sure where or why. To create the image I used Microsoft best practice as detailed on the MSDN. It is not a corrupted profile as there are no domain users have been logged on prior to capturing
the image. I am using DISM to capture and deploy. I did use the ADK to create the unattend file.
Does anyone have any suggestions as to what might be causing this behaviour?
Thanks
JeffW

Hi,
We have not heard from you in a couple of days. Please post back at your convenience if we can assist further.
If the above suggestions doesn't work, We'd collect PROFILE.ETL to further troubleshoot the issue.
a. Log onto the machine as an administrator.
b. Select the start menu
c. Type cmd in "Start Search"
d. Right click on cmd under “programs”
e. Select "Run as administrator"
f. Enable the User Profile Service Tracing using the following command in the new-opened elevated command prompt at the root of the C drive:
 logman -start profile -p {eb7428f5-ab1f-4322-a4cc-1f1a9b2c5e98} 255 3 -ets
g. Do not Log off as the current user and switch to logon as the user who receives the profile problem (please tell me the user name).
h. Once the user experiences profile issue, please switch back as the administrator.
i. Stop the User Profile Service Tracing using the following command in an elevated command prompt
 logman -stop profile -ets
j. Gather the profile.etl file in the root of the C drive and upload it to a shared space like Onedrive and shared the link here.
Kate Li
TechNet Community Support

Similar Messages

  • An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help The profile for the user is a temporary profile. (Exception from HRESULT: 0x80090024)

    An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help The profile for the user is a temporary profile. (Exception from HRESULT: 0x80090024) 
     while proview the report i will get this error am using sql server 2008R2,
    can u plesae hlep me out for this
     

    <Header>
      <Product>Microsoft SQL Server Reporting Services Version 2009.0100.1600.01 ((KJ_RTM).100402-1539 )</Product>
      <Locale>English (United States)</Locale>
      <TimeZone>W. Europe Standard Time</TimeZone>
      <Path>C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVEREPORT\Reporting Services\Logfiles\ReportServerService__01_30_2015_03_09_32.log</Path>
      <SystemName>WEGDACM1</SystemName>
      <OSName>Microsoft Windows NT 6.1.7601 Service Pack 1</OSName>
      <OSVersion>6.1.7601</OSVersion>
      <ProcessID>4880</ProcessID>
      <Virtualization>Hypervisor</Virtualization>
    </Header>
    rshost!rshost!5e4!01/30/2015-03:09:32:: i INFO: Currently registered url http://+:80/ReportServer_MSSQLSERVEREPORT/ on endpoint 2
    rshost!rshost!5e4!01/30/2015-03:09:32:: e ERROR: Failed to register url=http://+:80/Reports/ for endpoint 3, error=b7.
    rshost!rshost!5e4!01/30/2015-03:09:32:: w WARN: Endpoint 3 is enabled but no url is registered for vdir=/Reports, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVEREPORT\Reporting Services\ReportManager.
    servicecontroller!DefaultDomain!1e30!01/30/2015-03:09:32:: e ERROR: Error creating HTTP endpoint. System.Runtime.InteropServices.COMException (0x800700B7): Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7)
       at Microsoft.ReportingServices.HostingInterfaces.IRsUnmanagedCallback.CreateHttpEndpoint(RsAppDomainType application, String[] urlPrefixes, Int32 cPrefixes, String[] hosts, Int32 cHosts, Boolean wildCardPresent, String virtualDirectory, String
    filePath, Int32 authType, Int32 logonMethod, String authDomain, String authRealm, Boolean authPersist, Int32 extendedProtectionLevel, Int32 extendedProtectionScenario, Boolean enabled)
       at Microsoft.ReportingServices.Library.ServiceAppDomainController.SetWebConfiguration(RunningApplication rsApplication, Boolean enabled, String folder)
    rshost!rshost!65c!01/30/2015-03:09:32:: i INFO: Endpoint 4 is disabled and no url is registered vdir=/ReportServer_MSSQLSERVEREPORT/ReportBuilder, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVEREPORT\Reporting Services\ReportServer\ReportBuilder.
    rshost!rshost!1e30!01/30/2015-03:09:32:: i INFO: Derived memory configuration based on physical memory as 16776696 KB
    servicecontroller!DefaultDomain!1e30!01/30/2015-03:09:32:: i INFO: Recycling the service from the default domain
    rshost!rshost!1e30!01/30/2015-03:09:46:: i INFO: Application domain type WindowsService statistics: created: 7, unloaded: 7, failed: 0, timed out: 0.
    appdomainmanager!DefaultDomain!1e30!01/30/2015-03:09:46:: i INFO: Appdomain:11 WindowsService_7 started.
    library!WindowsService_7!1e30!01/30/2015-03:09:46:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    servicecontroller!WindowsService_7!1e30!01/30/2015-03:09:46:: e ERROR: Error initializing configuration from the database: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration
    error. 
    resourceutilities!WindowsService_7!1e30!01/30/2015-03:09:47:: i INFO: Reporting Services starting SKU: Enterprise
    servicecontroller!WindowsService_6!1e30!01/30/2015-03:09:47:: i INFO: Service controller exiting.
    appdomainmanager!DefaultDomain!1e30!01/30/2015-03:09:47:: i INFO: Appdomain:10 unregistered.
    appdomainmanager!DefaultDomain!1e30!01/30/2015-03:09:47:: i INFO: Appdomain:10 WindowsService_6 unloading.
    appdomainmanager!DefaultDomain!1f40!01/30/2015-03:09:47:: i INFO: AppDomain:10 0 pending unload(s)
    library!WindowsService_7!2410!01/30/2015-03:09:47:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    library!WindowsService_7!2410!01/30/2015-03:09:47:: e ERROR: ServiceStartThread: Exception caught while starting service. Error: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration
    error. 
    library!WindowsService_7!2410!01/30/2015-03:09:47:: e ERROR: ServiceStartThread: Attempting to start service again...
    library!DefaultDomain!202c!01/30/2015-08:04:43:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    library!DefaultDomain!202c!01/30/2015-08:25:26:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    library!DefaultDomain!202c!01/30/2015-08:26:16:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: No DSN present in configuration file, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. ;
    The above is my log file pls find it resolve my problem,am trying to add the encryption key to my configuration seetings it will through the error like The profile you were used is temporary profile.

  • MANY issues after installing Windows XP Home Edition with Boot Camp

    I have been having a lot of problems after installing Windows XP Home Edition (2002).
    For one, after installing Windows using Boot Camp with Mac OS X 10.5.1, I opened Windows on my Mac Book, inserted the Mac OS X Disk 1 as in the instructions and got the message: "This package requires a newer version of the Windows installer. Do you want to update the version of the Windows Installer on your system?" When I clicked Yes (I had NO idea what it meant at the time), I got the message: "The required resource 'UPDATE' is missing" and the Installer quit.
    How do I fix this problem?
    Another problem I have is that there is no sound on the Windows XP, yet it works perfectly on Mac OS X. Is there any way to fix this problem?
    A third problem I have is that I can't wirelessly connect to the internet using Window XP, yet I can on Mac OS X. I have no idea on how to fix this, and it's really messing with me. D:<
    D: Some of these problems may not be specifically "Application" related, but the top one mainly is. (in my views)
    ~Twilight

    Twilight:
    Is it possible that you installed Windows XPSP1 instead of the required SP2? If yes then that is cause of all of your issues listed in your post. You have no sound and you cannot connect wirelessly because you still have been unable to install the boot camp drivers when you inserted the leopard disk.
    Please double check to see which version of windows XP did you install. Remember, you need windows XPSP2 for all this to work.
    Now, in the event that you installed XPSP1 then you will need to get to the microsoft windows site on a different computer and burn the Service Pack 2 for windows XP on a CD. After that boot your apple mac to XP side and insert the Service Pack 2 disk and install the pack. After that, it will ask you to restart the computer which you must and then once fully booted into XP then insert the leopard CD again and see if takes and installs all the necessary drivers.
    Axel F.

  • Can't open secured documents on windows 7 domain client with mandatory profiles.

    While opening certain PDF files we have the problem that the user is presented with a message that he does not have the rights permissions. This happens twice, after that the users gets an empty page with the message the Adobe version might not be up to date. We use Acrobat Pro 10, but this also happens while using Reader 11.0.8. On our windows 2008 terminal services machine this could be fixed by giving the user rights on c:\ to create and remove a file. :O. On windows 7 this doesn't work probably because of UAC. But we've tried every solution to that available on the internet, disabling uac, changing uac options, changing rights on userprofile folders, changing rights on c:\ but to no avail. When using process explorer we can see it wants to create a temp file p328hkl.tmp or something like that on C but it can't and immediattely after is shows the error on screen.
    Anyone who also has this problem or solved it? There are no problems with simple self made pdf files/scans but only with certain types of pdf files for which it tries to create a tmp file.
    Thanks,
    Peter

    Hi Brogers,
    Thanks for your reaction. We do have AppData redirection in place. We redirect AppData to a share on our data server which works perfectly fine for all other applications. The weird thing is that Reader/Acrobat try to write to C:\ which to my knowledge should not happen, is this maybe a fallback because it can’t write to a different location? Users have full control on their own roaming AppData but not on their local AppData that is made by windows itself while copying the mandatory default profile to C:\.
    I might use the wrong term while saying secured documents. I’m talking about a document created by Raet/Youforce a web application for personal administration. The documents can be opened by other viewers than Acrobat/Reader but then only contain the background and not the text. In Acrobat/Reader they do open normally when Acrobat/Reader can create the .tmp file. Otherwise it will not display the file at all. I would attach such a document to see but since it contains certain info I am not allowed to do so.
    I hope we can work out a solution for this.
    Met vriendelijke groet,
    Peter Gerritsen
    Engineer
    AndoBurg BV
    Voorstraat 31
    3931 HB Woudenberg
    T 033 479 40 80
    F 033 479 40 89
    E [email protected]<mailto:[email protected]>
    I www.andoburg.com<http://www.andoburg.com/>
    Als u niet de geadresseerde van dit bericht bent, verzoeken wij u ons hiervan op de hoogte te brengen en het bericht te verwijderen. AndoBurg BV aanvaardt geen aansprakelijkheid voor schade die voortvloeit uit elektronische verzending van informatie. Aan de inhoud van deze e-mail en eventuele bijlagen kunnen geen rechten worden ontleend, tenzij schriftelijk anders is overeengekomen.
    Van: brogers_1
    Verzonden: vrijdag 19 september 2014 20:10
    Aan: Peter Gerritsen
    Onderwerp:  Can't open secured documents on windows 7 domain client with mandatory profiles.
    Can't open secured documents on windows 7 domain client with mandatory profiles.
    created by brogers_1<https://forums.adobe.com/people/brogers_1> in Enterprise Deployment (Acrobat and Reader) - View the full discussion<https://forums.adobe.com/message/6745441#6745441>

  • I have windows vista user account with administrator privilege. I am unable to update mozilla firefox to the latest version. It is saying "do not have required privileges". I already uninstalled the previous version :(

    I am unable to update mozilla firefox. I have user account with administrator privilege.

    Try to run the installer as Administrator via the right-click context menu (Run as Administrator).

  • Logon with temporary profile

    Dear Sir/Mam,
    we are using the domain environment at our office area and facing the Temporary  profile log in when we delete old user profile and create new user profile on windows 7.
    We have try to this again and again but found the same issue on another system.
    Due to some problem in user profile we have delete the user profile & trying to recreate the domain user profile on windows 7 but we found the massage in taskbar like Temporary Profile created on system. Also we are not getting the user profile in C
    drive.
    Kindly help me to solve the issue without re-install the windows.

    Perhaps the origin of problem may be in your W 7 system preparation. Windows 7 behaves differently than Windows XP and it is important to create default profile correctly. You should create it with sysprep and include copyprofile parameter.
    Local temporary profile may stem from not correctly set permissions. Make sure that you have set permissions correctly.
    Rgds
    Milos

  • When i log onto my computer it logs me into a temporary profile. how do i fix this?

    My computer stopped working. Had to control,alt.del and shut it down. When logging back on the computer it said that I was logged into a temporary profile. My desktop had changed and all file folders on the desk top where gone. Is there any way to reset the profile? I only have one user account on the computer. I am logging into that account but nothing is the same as it was before the shut down.

    OK, this is where I am with this problem:
    I set the IE8/IE9 swith to off as suggested in the previous reply.
    When I try to login now I get:
    "The User Profile Service failed the logon.
    User profile cannot be loaded."
    Turned off the laptop and retried a few times with the same result.
    Logging in with an Admin user account  I looked at the registry entries for my user account. It was basically all zeroes (apart from the user path and SID of course) and the .bak entry was the same apart from State being 0x00008000.
    The last time I managed to login successfully with my own user account I backed up my registry entry to a backup drive so I shut down the laptop, logged on with Admin and restored my user account registry entry. I then looked at the registry entry I just restored and it was all zeroes apart from RefCount which was 0x00000007. I shut down the laptop.
    I successfully logged on to my user account and again looked at the registry entry which was all zeroes apart from RefCount which was now 0x00000002. Why this hadn't gone up from 7 to 9 but instead went down to 2, I cannot explain?!?
    I shut down the laptop, logged in as Admin and looked at my user account which was now all zeroes, including RefCount.
    I tried logging in with my usual user account but this after a long, long time "preparing your desktop" I was logged in with a temporary profile again. Using Regedit to look at my profile in the registry it had RefCount of 2 and State of 0x00004a04. The .bak entry was as before, all zeroes but for state of 0x00008000.
    The only way I can now login using my user account is to restore my backed-up registry entry after every successful session and close down - which is clearly not acceptable. Something is stopping the login process and only a registry restore of my profile in the ProfileList allows me to login successfully. I really can't see the RefCount being the cause of failed profile loads but even if it is, what is the root cause of the RefCount being changed to something that invalidates my Profile?
    I am posting this into a Microsoft forum also, to see if any answers turn up there.

  • Office 2013 apps showing templates error after Sysprepping Windows 7 with CopyProfile setting

    Here is my setup:
    I installed Windows 7 Professional.
    I entered Audit Mode (which automatically logged me in as the built-in Administrator user) and installed the entire Office 2013 Professional Plus suite.
    In Audit Mode, I opened Word 2013 to get through the "new user" prompts, such as the opening movie that plays in all Office 2013 programs. I did this to ensure that any new users who log into the computer would not need to sit through these "new
    user" prompts.  I also rearmed Office 2013.
    I ran Sysprep with the CopyProfile setting in the Unattend.xml file, with the /generalize switch, and the /oobe switch. The CopyProfile setting copies settings from the built-in Administrator account to any new user who logs into the system.
    Both Windows and Office were successfully activated using KMS.
    Everything seemed to work, but there is one problem: when any user -- all of which are standard users rather than administrator users -- logs into Windows and runs any Office 2013 program that has templates (such as Word, Excel, and PowerPoint), the templates
    on the Start page do not appear. In their place, the following error message appears on the Start page where the templates would normally have been listed:
    "Sorry, we had trouble getting the featured templates and can't show them right now."
    Below the error message is a link that reads “Work Offline.” If you click the “Work Offline” link, the error message disappears and the templates appear as they should.  However, the error message re-occurs when the application is closed and re-opened.
    If I login as the built-in Administrator account (i.e., the account I used to modify the default profile), this problem does not occur at all when using Office 2013 programs.
    Any ideas?

    "logs into Windows and runs any Office 2013 program that has templates (such as Word, Excel, and PowerPoint), the templates on the Start page do not appear. In their place, the following error message appears on the Start page where the templates would normally
    have been listed:
    "Sorry, we had trouble getting the featured templates and can't show them right now." "
    Is there any chance to let you skip the Start page for Office application? I mean that try to open Office application (such Word)and go to File > Options > Untick the option "Show the Start screen when this application starts". Try to re-launch
    the application again to check if the error still pop-up. If yes, I'm afraid the default build-in template is corrupted somehow and we need to copy a healthy one from another computer or totally rename normal.dotm documents from %userprofile%\AppData\Roaming\Microsoft\template.
    Afte that, please check if the issue still persists.
    Here is another thread with the similar topic for your reference:
    http://social.technet.microsoft.com/Forums/ie/en-US/09a69d4c-9e5f-489d-ba7b-2af79ff83596/deploying-normaldotm-through-oct-doesnt-work-in-office-2013?forum=officesetupdeploy
    http://answers.microsoft.com/en-us/office/forum/office_2013_release-office_install/can-not-sign-into-office-2013-version/b6951c25-2fb5-4fc1-a667-2327b9da2f7f
    Tony Chen
    TechNet Community Support

  • Can't install Exchange 2013 after previous uninstall (insufficient user privileges with the same user)

    I have installed Exchange 2013 on Windows Server 2012, which ist a member of a Windows Server 2012 R2 Domain. All prerequisites and AD modifications were successfully  completed and I could install Exchange 2013. Unfortunately I made a mistake with
    the target directory and had to uninstal Exchange 2013. If I start the Setup again, it fails in prerequisite check - the current user should not be a member of Enterprise and Schema admin Group, but it's the same user, which comleted the previous Installation
    of Exchange 2013! Do you have any idea how to solve this Problem - I'm running out of ideas.

    Inhave tried to run setup /PrepareSchema again and get the following error in exchange setup log:
    [03.07.2014 19:25:53.0305] [0] Setup encountered a problem while validating the state of Active Directory: Couldn't find the Enterprise Organization container.
    [03.07.2014 19:25:53.0337] [0] Validating options for the 0 requested roles
    [03.07.2014 19:25:53.0383] [0] [ERROR] Setup encountered a problem while validating the state of Active Directory: Couldn't find the Enterprise Organization container.
    [03.07.2014 19:25:53.0399] [0] The Exchange Server setup operation didn't complete.  More details can be found in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.
    After removing all Exchange Parts by ADUC (advanced View) and ADSI Edit (Services) I'm able to install Exchnge 2013 again - the uninstall procedure seems not to work in a clean manner.

  • Windows Services not starting in OOBE after Sysprep - Windows 7 Professional 64bit

    So, I'm attempting to create an image to deploy to our Lenovo Thinkpad T540p's using Windows 7 Proffesional 64bit. At this point I'm simply setting up the image and running Sysprep /oobe/ generalize and then trying to boot into windows to make sure it works
    before we store and deploy it.
    When I do, I'm getting an error message that the services failed to start and restart the PC. I started the process listed here:
    https://social.technet.microsoft.com/Forums/windows/en-US/658528ce-6eb5-403b-ae41-458147c2c044/sysprep-failling-after-reboot-into-oobe
    But my issue seems to be a bit more complicated than that, as the issues for me seem to be coming from the registry key [\REGISTRY\MACHINE\SYSTEM\ControlSet001\Enum\ROOT\LEGACY_KL1] as being the one that:     <Data Name="Message">(c0000022):
    Failed to process reg key or one of its descendan
    I've tried starting from the Lenovo image, or our previos image but cannot avoid this error. Any ideas? Here is the logfile in full:
    https://docs.google.com/spreadsheets/d/1RlStS8OyNTsL7Y_VO2HniDz0FI0jUi-ZGnUCVlowVvs/edit#gid=192385465

    It's an image that was created by the previous tech. He appears to have modified the lenovo image (it has a bunch of lenovo bloatware still on it) and then run sysprep on it. His image works, but if I make any changes to it, it seems to break.
    Yeah, I wish I could get a hold of him and ask, but that's not really an option ><
    Edit: Interestingly enough I ran sysprep just from the image and it did the same thing...I'm not really sure what the last guy must've done to set this up

  • Windows XP User problem with CS5

    Following a recent security scare, I stopped running XP as a User with Administrator rights and changed to being a Power User. Shortly after, CS5 started to behave very oddly. My arrow  and delete keys ceased to function and I could not have any more than one floating box open at any one time. Running as an Administrator, however, works fine. I deleted all preferences and even reinstalled CS5, but to no avail. It's a real pain having to switch users just for InDesign, especially as I need to have other programs, including the web, open at the same time, but don't want to run the security risks of a Trojan. Should I create a new user and start over? I can't understand why CS5 should differentiate betwen users - it seems bizarre to me.

    Thanks for the info, chaps, but I have got absolutely nowhere despite spending hours on the issue. I have trashed the preference files time and again, but to no avail. I have even tried deleteing all the relevant InDesign Application data folders in Document&Settings>Application Data and Local Settings. Still no good. I have amended the registry in regedit to allow full access to me as a Power User. I have run CACLS commands to give me access rights for the InDesign Presets. Still, no good! InDesign opens OK, but there are no tools showing and when I open a floating dialogue box, for example Type>Character it shows Align...and my arrow keys still don't work.
    Tearing my hair out over this.

  • After a windows update, iTunes opens with no library

    My computer was recently updated by Windows Update, and rebooted. iTunes may have been running. After the re-boot. I opened up iTunes, and there is nothing in the library. it is empty. Similarly, there is nothing in my podcasts. I looked for my music libraty (37GB) and found it just where it was supposed to be:
    C:\Documents and Settings\mcv\My Documents\My Music\iTunes\iTunes Music
    I have not updated my iPod since this.
    How can I resrtore my music library and podcast subscriptions?
    intel2.4gHz   Windows XP Pro  

    OK, I figured out what had happened. after iTunes apparently exits, it is not done. I had windows explorer open and I saw that several new files get created, they are temp files, including one called iT.tmp. These files are apparently used to reindex the music library. evetually, the iT.tmp file gets remnamed to iTunesLibrary.itl, and the iTunesMusicLibrary file is rewritten. You can watch this happen after iTunes closes. so, when you exit iTunes, it is not done....it will take about 15 more seconds to finish.
    so, in MYcase, where a windows update was done, Windows closed itunes, and thinking it was done, rebooted my machine. This caused the trouble I had.
    While my iTunes library is about 40GB, I will make some eforts to back this up regularly. you should also backup the ItunesLibrary.itl file and the iTunesMusicLibrary.xml file. You will also notice a couple of other temp files in the iTunes directory. probably no need to back these up.
    M

  • Logging user access with IP..?

    I want oto add some user logging for my site and since it requires authentication I believe most of the heavy lifting has already been completed. I'm hoping someone can give me some direction as to how to incorporate the pieces I need into what I have already existing.
    Currently I believe the following is the php for granting access on my site:
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && true) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "../logon.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
      $MM_referrer .= "?" . $QUERY_STRING;
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    I believe some of the pieces I'm missing are the IP address for the user and the sql needed for the INSERT into mySQL which I believe are as follows:
    $ip_address = $_SERVER["REMOTE_ADDR"];
           $sql = "INSERT INTO  user_tracking
                  (username, ip_address)
                  VALUES ('MM_Username', '$ip_address')";
    mysql_query($sql, $maxdbconn) or die(mysql_error());       'Is this the command for executing the SQL???
    My problem is I'm still green and don't understand the php routine well enough to be able to plug in these pieces and whether I'm missing something else so I'm hoping someone can help shed some light.
    Thanks.
    A JM,

    I found the original page and again I realize that I was missing some original code, I realize it makes it tough to follow - my appologies. I tested this source below and all is back to normal.
    So, back to trying to add the user to the tracking DB.
    I think the pieces I'm missing are as follows- not sure though...????
        //SQL string for user logged in
        $insertSQL = "INSERT INTO user_tracking (username, ip_address) VALUES ('maxadmin', '192.168.1.100')";
        mysql_select_db($database_maxdbconn, $maxdbconn);
        $Result1 = mysql_query($insertSQL, $maxdbconn) or die(mysql_error());
    However, when I add the lines before ( header("Location: " . $MM_redirectLoginSuccess ); )  I get an error message in Dreamweaver, "The Server Behavior panel cannot determine whether "Log In User" or "Log In User" is applied to your page. Please select Edit Server Behaviors and change one of the two behaviors to ensure that each is uniquely identifiable."
    A JM,
    <?php require_once('Connections/maxdbconn.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['username'])) {
      $loginUsername=$_POST['username'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "dbpages/claimroot.php";
      $MM_redirectLoginFailed = "failedlogin.html";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_maxdbconn, $maxdbconn);
      $LoginRS__query=sprintf("SELECT username, password FROM users WHERE username=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $maxdbconn) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;         
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];   
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>

  • Monitoring Users session with specific profiles

    Hi,
    I created a specific profile that terminates a session with idle time 4 minutes. I would like to know how to monitoring which sessions are been disconnected by Oracle.
    Thanks in advance,

    enable auditing by using
    alter system set audit_trail = db scope=spfile
    and bounce
    Then issue audit connect
    The dba_audit_session view will have the reason why the process was disconnected.
    Sybrand Bakker
    Senior Oracle DBA

  • Server with same Profile cannot access same networking

    Hi,
    I have a lab running 1 x Nexus 5010, 2 x FIC 6120'XP's, UCS 5108 and 2 x B200 M2 Blades. I have configured everything per flexpod guidelines (except I have only 1 Nexus). I boot from SAN over Fibre and zoning everything is working 100% My firmware is 2.1(1f)
    Question:
    Assinged to each blade is 2 vNICs connected to FabricA and FabricB (FabricA = port-channel from FICA to Nexus and FabricB = port-channel from FICB to Nexus - Nexus has 2 different port-channels conf for each link to each FIC)
    After I install VMware, I tag vlan 10 (management vlan) for the management traffic of each VMware node. The funny thing is when I ping server 2, iget a response but not from server 1. Both are configured using the same service profile. If I ping server 1 from server 2, I get a response. This leads me to believe that for some reason the traffic is not leaving the FIC from server 1, but it is when using server 2. I have attached screenshots of both servers vifpaths.
    Can someone please help urgently as this is driving me crazy as I do not know what the hell is going on.
    Cheers                   

    Hello
    Hope this solution will help.
    Just found my notes on deleting the users profile:
    "Deleted Profile logs back in with temporary profile.
    This problem occurs if the current user's profile was accidentally deleted from the system.
    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry
    1. Log on to the system by using an administrative user account other than the user account that is experiencing the problem.
    2. Back up all data in the current user's profile folder if the profile folder still exists, and then delete the profile folder. By default, the profile resides in the following location:
    %SystemDrive%\Users\UserName
    3. Click Start, type regedit in the Start Search box, and then press ENTER.
    If you are prompted for an administrator password or for confirmation, type your password, or click Continue.
    4.Locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    5.Under the ProfileList subkey, delete the subkey that is named SID.bak.
    Note SID is a placeholder for the security identifier (SID) of the user account that is experiencing the problem. The SID.bak subkey should contain a ProfileImagePath registry entry that points to the original profile folder of the user account that is experiencing the problem.
    6. Exit Registry Editor.
    7. Log off the system.
    8. Log on to the system again."
    & for more information kindly check the below link too :- http://community.spiceworks.com/topic/187995-network-pc-cannot-access-1-specific-server .
    Regards
    keshav

Maybe you are looking for