I want to give MS SQL service start/stop permission to Remote Desktop users (not admin user). Can anyone have idea about this?
Step 1 – Create the Console
We need to open a hidden console snap-in
Click Start > Run (or press WIN + R) and type “mmc.exe”
This opens an empty Microsoft Management Console. Click File > Add/Remove Snap-in… (Ctrl + M)
Scroll down the list of available Snap-ins and select Security Configuration and Analysis
Click Add
Next select Security Templates
Click Add
Click OK
Step 2 – Create a blank Security Template
In Windows Server 2003 and below you can store these files anywhere but later versions have tougher restrictions so we will be creating everything in D:\Securtiy\
Right-click Security Templates from the console tree and select New Template Search Path …
Browse to D:\Security, or other local path, and click OK
Right-click D:\Security from the console tree and select New Template …
Give the new template a name, e.g. Custom Services. It doesn’t matter what you use.
The Description is optional but may be useful if you want to re-use it
Click OK and you will see the new template appear in the console
Step 3 – Create a Security Database
Right-click Security Configuration and Analysis from the console tree and select Open Database…
Browse to D:\Security, or other local path, and type a name in the File name: box e.gSecurity
Click OK. This creates an Security.sdb file that is used to apply the changes
An Import Template window appears. Browse to C:\Security/Custom Services.inf and selectOpen. This applies the template with all the local services to the database
If you get the error “The database you are attempting to open does not exist.” then you need to choose a different path i.e. on a local disk
Right-click Security Configuration and Analysis from the console tree and select Analyze Computer …
Click OK to accept the default log file path
You will then be presented with something that looks very similar to the Group Policy Editor or Local Security Policy Console
Step 4 Change Service Permissions
Double-Click System Services
Scroll down to find the service you need to change, MSSQLSERVER ,MSSQLAGENT
Double-Click the above mentioned services.
Tick the box Define this policy in the database:
Click the Edit Security … button
Click Add
Type in the user name of the Service account e.g. Remote Desktop User, and click OK
With the Remote Desktop User account selected, check the Allow permissions for Start, stop and pause
Click OK
Click OK on the Service Properties to bring you back to the console
You’ll notice the Service now has an ‘x’ on it and Investigate message on the Permission column. This is because the new permissions we’ve chosen conflict with what is on the local computer
Step 5 – Apply new Security Permissions
Right-click Security Configuration and Analysis from the console tree and select Configure Computer …
Click OK to accept the default log file path
This will apply the new custom permissions to the local computer
You can now test it out on the server with the Remote Desktop User account and test it works..
Related
How do I get a folder to appear in the browser after adding it to \pentaho-solutions in Pentaho 5.0.1 CE. The documentation I read does not seem to work with this new version.
1. Create a new directory in /pentaho/server/biserver-ee/pentaho-solutions/.
Use underscores instead of spaces in the solution directory name. Ensure that the directory has the appropriate user
and group ownership to be writable from the BI Platform.
2. Using an XML-aware text editor (or Design Studio), create a file named index.xmlin your new solution directory.
3. Copy the following text into the index.xml file, changing the content accordingly:
***<index>
<name>Example Solution</name>
<description>This solution contains examples I created while learning to
work with action sequences.</description>
<icon></icon>
<visible>true</visible>
<display-type>icons</display-type>
</index>***
4. Save the file and close the text editor.
5. Log into the Pentaho User Console as an administrator.
6. Refresh the solution repository cache by going to the Toolsmenu, then selecting the Refreshsubmenu, then
clicking on Repository Cache.
You now have a new solution directory. It will show up in all file dialogues in the Pentaho User Console as well as the
Solution Browser in the left pane.
Every time you add or edit an action sequence to your solution directory, you must refresh the repository cache as
explained above. Each user currently logged into the Pentaho User Console must also refresh their session cache; this
is best done by re-logging into the Pentaho User Console.
I am using Pentaho design studio to develop an xaction sequence script. I followed this procedure:
1. In Design Studio, go to the Filemenu, then select New, and click on Other...in the sub-menu.
The Newwindow will appear.
2. In the Newwindow, click the triangle next to Pentaho, select New Action Sequence Wizard, then click Next.
3. In the File namefield, type hello_world.xaction.
4. Select Hello Worldfrom the Templatedrop-down box, then click Finish.
The wizard will generate the new file and bring you back to the workbench.
5. Click on HelloWorldComponentin the Process Actionssection on the left.
The right side of the screen will change to show the options available for this action: Nameand Message. The
Name field controls the name of the component in the Process Actions list on the left; it doesn't do anything else of
note. The Message field contains the text that will appear on the screen when the action sequence is run. It is prepopulated with %quote, which is a token that represents a quote message in a nonexistent properties file. Pentaho
used to provide properties files for each example, but they have been removed from the standard Pentaho Business
Analytics distribution.
6. Replace the %quotewith a sufficiently inspiring message.
Alternatively, you could create a hello_world.propertiesfile and populate it with the appropriate messages and
tokens, but that has no advantage unless you intend to internationalize this action sequence.
7. Save the file.
You now have a working action sequence that prints a short text message: "Hello, World." plus whatever you typed into
the Message field. The first part of the message is determined by a message bundle packaged with the Pentaho Web
application archive.
To test the action sequence, use the Test tab if you are on Windows or OS X, or log into the Pentaho User Console and
run it from the Solution Browser.
Running the sample xaction fails with
Sorry. We really did try.
Something went wrong. Please try again
or contact your administrator.
I figure this is because pentaho cannot locate the xaction file as specified in the file path when I generate the url from within design studio. The folder I created within the solution directory does not appear in the browser directory list despite refreshing the cache. Any help?
With Version 5 the files and folders are no longer stored in "/pentaho/server/biserver-ee/pentaho-solutions/..."
It is stored now in a jackrabbit repository.
You can create folders and upload files in the user console.
I did mistake after starting biserver 5.2. Unexpectedly i deleted Public folder after configuring to jackrabbit. Now how do i create the folder so that i can see Public and Home Folders.
Sorry for getting back to this question some time later, just in case someone searches something related to Pentaho repositories management with no success, i hope this information can help.
Just to make things more clear, i'm using version 5.2.x and i'm supposing you want to create a new folder on the root directory of Browse Files screen, something that is not allowed on Pentaho5 CE Web Console.
The answers about repository management based on JackRabbit are correct, so the old way we used to configure new "solutions" folders doesn't work anymore. From version 5 on, Pentaho exposes an interesting REST api that allows you doing things not allowed in web console.
For instance, for creating a folder in root directory you should create a http REST PUT request against Pentaho Server (using tools like curl or if you appreciate Google Chrome, something like Advanced Rest Client, etc.) using the following URL:
http://localhost:8080/pentaho/api/repo/dirs/:new_directory_name?userid=admin&password=password
Pentaho repository directory REST api is documented here:
http://javadoc.pentaho.com/bi-platform500/webservice500/resource_DirectoryResource.html
It's worthy to spend some time reading REST API the documentation.
I watched a video in relations to creating and working with databases in Delphi. The video states that you can create the database using code, the data explorer or the SQLite3 console application, but I am unable to find out how to create the database using the Data Explorer. Does anyone know a way I can go about doing this?
Thank you in advanced.
The instructions that follow are for XE3, but they should work for XE as well.
Right-click on the SQLite item in the Data Explorer, and choose New connection.
Enter the full path to your new database file (which, of course, won't exist yet) in the Database edit control.
Click the Advanced button in the lower right corner of the dialog. Find the entry for FailIfMissing, and change the value from True to False, and then click the OK button to close the Advanced Properties dialog.
Click the Test connection button in the lower left corner of the dialog (directly across from the Advanced button you clicked before). You should get a dialog that says Test connection successful. Close the New Connection dialog. (If you don't get a successful test connection at this point, check the path to the database you entered; it will fail if the folder doesn't exist. It can also fail if the SQLite3.dll isn't on your Windows PATH or is the wrong version.)
To create tables, expand the Data Explorer entry for your new connection created above, so you can see the Tables, Views, and Procedures branches. Right-click on Tables, and choose New table from the pop-up menu.
How can I check the character encoding set on My Websphere Portal server? I mean after logging into the console, where do I go?
Consider that you want to enable "UTF-8", for example, then:
On the Application Server page, click on the name of the server that you want it to be UTF-8 enabled.
On the settings page for the selected application server, click Process Definition.
On the Process Definition page, click Java Virtual Machine.
On the Java Virtual Machine page, specify -Dclient.encoding.override=UTF-8 for Generic JVM Arguments and click OK.
Click Save on the console taskbar.
Restart the application server.
This can work for any Character Encoding.
You can go to "Administration/Portal Settings/Supported Markups" and click on "Show info"
Create an application server or use an existing application server.
On the Application Server page, click on the name of the server you
want enabled for UTF-8.
On the settings page for the selected application server, click
Process Definition.
On the Process Definition page, click Java Virtual Machine.
On the Java Virtual Machine page, specify
-Dclient.encoding.override=UTF-8 for Generic JVM Arguments and click OK.
Click Save on the console taskbar.
Restart the application server.
From IBM Support Website.
I want to figure out when the services was start up and terminated. Are there any kind log file about it?
Under Windows 7, open the Event Viewer. You can do this the way Gishu suggested for XP, typing eventvwr from the command line, or by opening the Control Panel, selecting System and Security, then Administrative Tools and finally Event Viewer. It may require UAC approval or an admin password.
In the left pane, expand Windows Logs and then System. You can filter the logs with Filter Current Log... from the Actions pane on the right and selecting "Service Control Manager." Or, depending on why you want this information, you might just need to look through the Error entries.
The actual log entry pane (not shown) is pretty user-friendly and self-explanatory. You'll be looking for messages like the following:
"The Praxco Assistant service entered the stopped state."
"The Windows Image Acquisition (WIA) service entered the running state."
"The MySQL service terminated unexpectedly. It has done this 3 time(s)."
Take a look at the System log in Windows EventViewer (eventvwr from the command line).
You should see entries with source as 'Service Control Manager'. e.g. on my WinXP machine,
Event Type: Information
Event Source: Service Control Manager
Event Category: None
Event ID: 7036
Date: 7/1/2009
Time: 12:09:43 PM
User: N/A
Computer: MyMachine
Description:
The Background Intelligent Transfer Service service entered the running state.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Through the Computer management console, navigate through Event Viewer > Windows Logs > System. Every services that change state will be logged here.
You'll see info like:
The XXXX service entered the running state or The XXXX service entered the stopped state, etc.
The most likely place to find this sort of information is in the event viewer (under Administrative tools in XP or run eventvwr) This is where most services log warnings errors etc.
How can I change the system-default regional settings in windows XP for use by services (run by the system user)?
Regional and Language Options in the control panel modify the settings for the logged-in user. However, services don't use the user's settings - they use the system settings. I know that they can be found in the registry here:
HKEY_USERS\.DEFAULT\Control Panel\International
My question is: What mechanism is there for changing the system-language/date/etc from en-us to en-gb?
This was helpfull for me
"Apply regional and language settings to reserved accounts".
In short (Windows 7): Open "Region and Language" dialog, then click the "Administrative" tab, and then click "Copy settings...", select "Welcome screen and system accounts", OK.
There is no documented way to do that.
A quick look in the Regional Settings Applet dll shows that it calls a totally undocumented API: NlsUpdateSystemLocale().
Why do you want to do that? Do you want to control the locale of a service of yours? Then let your service run under a user account you control.
Could you not use regedt32 on a machine and make all the correct settings...then export the International folder by right clicking and export the reg file.
you can manually edit the exported reg file if you dont need all the settings
then you can run that reg file on a new machine to import the registry keys etc?
Not so easy.
Fast way: define a specific user to run the service, logon with that user, set the regional settings, run the service.
IM not sure if this will help
First type in gpedit.msc from the run command and a dialog box should now open.
Navigate to User Configuration > Administrative Templates > Control Panel > Regional Settings.
This shows the group polcies for the PC/s, maybe you can just set it so en_gb is the only option!!
Group Policy is not my strong point, but do a google search and go from there, I would imagine that you should be able to set up who and what can do what from here.
HTH